Skip to main content

Questions tagged [pubsub]

Publish/subscribe is a method for wiring software components together. One component publishes data, and subscribers receive events containing the data. This decouples the components so they do not need to know about each other; and it allows for configuration to wire components together without recompiling code.

Filter by
Sorted by
Tagged with
0 votes
2 answers
209 views

As I understand it, a channel/topic in a pub/sub architecture is used to keep track of which subscribers to notify when an event occurs. E.g. If I comment on a post I can subscribe to the channel for ...
Peter S's user avatar
1 vote
2 answers
112 views

If I have a system where my distributed service is sending live scores of 1000 s of football games from some hypothetical event to millions of clients. The service subscribes to the games from a ...
Ufder's user avatar
  • 254
0 votes
1 answer
455 views

I was reading Google's Architectural overview of Pub/Sub and I was curious how publisher and subscription servers were connected. From what I understand: When a message is published, it is stored, ...
Thomas's user avatar
  • 129
0 votes
0 answers
145 views

Looking for a good reason to avoid this solution. Problem Multiple microservices/SAAS, each storing the same data that needs to be synced (example is customer contact details). 1st is an OAuth ...
Arvin Yorro's user avatar
0 votes
1 answer
153 views

I work on a SaaS system which is generally a single-tenant environment. Customers (whom the SaaS instances are for) would like a way to subscribe to events, such as updates of certain data entities. ...
Richard's user avatar
  • 101
0 votes
0 answers
114 views

I have a service (S1) that is deployed on kubernetes having multiple replicas (pods). S1 requires some data from database (Cosmos Cassandra Api) for calculation. This data is constantly updated by ...
Lord Nick's user avatar
  • 101
2 votes
2 answers
9k views

Building on this answer here, and its comments it entails that subscribers need to know and locate the publishers in a traditional pub/sub system. It also entails that publishers need to live at least ...
bodhihammer's user avatar
2 votes
3 answers
538 views

I'm working on a microservices application that is implemented from the ground up with MediatR em CQRS. We have a list of domain events that will be published via MediatR [simple pub-sub library that ...
underthevoid's user avatar
0 votes
2 answers
228 views

I'm trying to design a data updates mechanism in my micro-services architecture. For the sake of simplicity, let's assume we have two micro-services A and B, B exposes an API for creating some tasks, ...
Sawel's user avatar
  • 109
4 votes
1 answer
6k views

I have been using queues and PubSub patterns for years but never really came across the terminology "event bus". After some googling I didn't really find a clear distinction between "...
Frankster's user avatar
  • 189
0 votes
0 answers
118 views

I have two micro services built using spring boot, One micro service is: "payment" Which handles actions related to payments. Like creating a payment link. Getting the latest status of ...
aravind's user avatar
  • 101
1 vote
2 answers
259 views

I have a Node.js micro-service architecture-based back-end. Services communicate with each other via PubSub. E.g. upon a request to service A, service A messages either service B or service C via ...
cis's user avatar
  • 255
0 votes
1 answer
111 views

I was going through https://docs.microsoft.com/en-us/azure/architecture/patterns/choreography, the document mentions in the drawbacks of having a central orchestrator that it can become a performance ...
takasugi's user avatar
  • 303
0 votes
0 answers
873 views

I have a question about gRPC communication. I know gRPC has 4 models communication: unay, server-streaming, client-streaming and bi-direction. And the terms "client" and "server" ...
ThanhLam112358's user avatar
0 votes
0 answers
149 views

I'm new to the microservices field. I'm looking for the right approaches regarding how to deal with the challenge of redundancy of a pus-sub application. Assume my application has has the below ...
Roni's user avatar
  • 101
3 votes
0 answers
822 views

I'm in the process of adding a message broker (ActiveMQ Artemis) to a system currently and while I have my own notions on how I can divide up the namespace, it seems like a good time to get opinions ...
Alexander Trauzzi's user avatar
0 votes
1 answer
92 views

With a single publisher(go-routine) and multiple subscribers(go-routine) on same machine, below message hub help create pubsub model: type PublisherHub struct { subscribers map[*subscribmediator....
overexchange's user avatar
  • 2,325
0 votes
5 answers
602 views

Let me explain what I mean. Imagine A subs to event b. In such case A pubs event a. B subs to event a. In this case B subs b. This is a full-blown circle. How does a pub/sub cycle deal with such ...
Aurlito's user avatar
  • 27
3 votes
1 answer
266 views

I've been studying distributed systems design, in particular the Udi Dahan's class. He talks about the publish-subscribe pattern as a common pattern in messaging-oriented designs. There's obviously a ...
liori's user avatar
  • 725
-4 votes
1 answer
167 views

i have a problem in my scalable Pub/Sub application that it can not take more than 30 RPS when big amount of sessions are open against it. first i will explain the application structure. the ...
Dev93's user avatar
  • 21
1 vote
2 answers
170 views

I'm working on a project that uses PubSub(GCP), my question is not specific to GCP, it's more regarding to the architectural pattern(I'm used to statically typed languages, and I have a hard time ...
alex's user avatar
  • 21
3 votes
1 answer
303 views

Problem description Publisher-Subscriber architecture with a central registry where agents can either promote their capabilities or search for a given capability. The project must be developed with ...
Dayrona's user avatar
  • 139
-1 votes
1 answer
291 views

I'm starting a brand new project implementing microservices with domain driven design. We will have microservices written in different languages like C#, Python, and Node. I'm thinking about hosting ...
Tom Schreck's user avatar
1 vote
0 answers
513 views

We have a system consisting of Detectors Converters/Transformers Business Rules Engines and State Managers Views/Displays/Applications There are several potential ways these may interact and share ...
WestCoastProjects's user avatar
2 votes
0 answers
116 views

Suppose there is a microservice that has an restful HTTP API for CRUD operations on a database - nothing fancy, but there is a journal table of all changes recorded for audit purposes. Suppose also ...
Bohemian's user avatar
  • 2,076
1 vote
0 answers
256 views

I'm currently looking into NestJS to use as the framework for a new e-commerce project. The goal is to build multiple loosely-coupled services, which can communicate with each other using the pub/sub ...
JasonK's user avatar
  • 111
0 votes
0 answers
135 views

I am making a chat-app using the XMPP protocol and ejabberd as XMPP server. I want to build a push notification functionality for the app. The app is similar to WhatsApp. I came to know three ...
Sagar Singh's user avatar
2 votes
2 answers
1k views

Suppose I have a message broker that allows consumers to specify a batch size. What are the advantages and disadvantages of consuming events in batches compared to consume them one by one? The ...
antonro's user avatar
  • 249
4 votes
1 answer
420 views

I am porting an event-driven architecture to a container environment (Docker) and I wonder how to take advantage of replication while using pub-sub: if I just increment replicas I end up with many ...
Marco Stramezzi's user avatar
-1 votes
2 answers
222 views

There are multiple microservices which are responsible for storing data dependent from user, e.g. user preferences on some products, user orders, etc. There is a scenario when user is deleted from ...
dev123's user avatar
  • 111
3 votes
1 answer
151 views

I am working on a SaaS project that will have a trial when the trial is ending I get a webhook notification when 3 days are remaining. I do some stuff with this and one of the things is I update user....
joshk132's user avatar
  • 161
1 vote
1 answer
1k views

At a conceptual level, what ways can a subscriber catch up with events it has potentially missed but needs to know about at a later time. For example, a service is running and subscribes to events on ...
David Osborne's user avatar
1 vote
1 answer
87 views

I am working with Reddis but this could apply to any PubSub implementation. Essentially we are trying to implement an event system using Reddis's PubSub capabilities. As an example UserA creates a ...
Andrew Bonsall's user avatar
0 votes
1 answer
76 views

I want to create an application that will run as a service that subscribes to a Google Cloud pub/sub topic, and delivers emails based on 'alerts' that it receives through the pub/sub subscription. It ...
Chris Halcrow's user avatar
0 votes
1 answer
246 views

I'd like to develop a microservice architecture application that sends text messages from one communication provider to another and I'm just considering changing architecture would be best suited to ...
Hugo's user avatar
  • 11
1 vote
1 answer
197 views

In an event sourcing architecture, what is the typical pattern for passing information about related objects (aggregates)? For example, in a order processing system, should OrderCreated event (...
ubi's user avatar
  • 149
0 votes
3 answers
5k views

I am using Kafka. I am developing a simple e-commerce solution. I have a non-scalable catalog admin portal where products, categories, attributes, variants of products, channels, etc are updated. For ...
rohanagarwal's user avatar
1 vote
1 answer
221 views

I have recently started updating portions of our corporate platform, and I've been trying to find ways to make the entire platform more efficient, better structured, and just cleaner in general. With ...
JD Davis's user avatar
  • 1,387
1 vote
1 answer
3k views

If I have two different producers that could produce the same message for a Kafka broker, how can I ensure that only one of the two message occurrences gets processed? Is the only way to have an ...
Syed Jafri's user avatar
2 votes
2 answers
204 views

I create an object that holds the status of a job. The job has many stages, some concurrent. Worker threads constantly monitor the status object to see if it's ready for the next stage to begin, if it ...
Richard's user avatar
  • 198
0 votes
1 answer
2k views

I am trying to load test a queue that works on a pub sub pattern and can't figure out how response time is to be calculate and the TPS(transactions per second). Problem statement : The pub sub ...
Abhishek Yadav's user avatar
2 votes
1 answer
463 views

We use Google Pub/Sub for event streams which we want consumed by transient websocket clients. What is a good pattern for creating subscriptions and cleaning them up when the client is no longer ...
Jer's user avatar
  • 29
0 votes
1 answer
518 views

We are working on a project which interacts with multiple third party systems and they need each other's data to function. Now, for some data which needs to be in sync in multiple systems, we are ...
Rishikesh Dhokare's user avatar
58 votes
5 answers
37k views

I am designing a system to receive data from various types of sensors, and convert and then persist it to be used by various front-end and analytics services later. I'm trying to design every service ...
foxtrotuniform6969's user avatar
1 vote
1 answer
360 views

This scenario seems pretty ordinary, and yet, strangely, messaging systems (like Google Cloud PubSub and Task Queues and ActiveMQ) do not seem to support it -- they assume that topics/queues are long-...
Joshua Fox's user avatar
  • 1,110
5 votes
1 answer
11k views

What is a good diagrammatic way to represent asynchronous event communication between two systems (the pub sub model)? I am not looking for tools but more of a representation. Is it a sequence diagram,...
Vikash Kodati's user avatar
1 vote
1 answer
672 views

The general question is what kind of mechanism can I use to transfer data to and from publishers and subscribers where publishers or subscribers can be permanently offline? Can message queues be used ...
Kent Bull's user avatar
  • 141
2 votes
3 answers
217 views

I have a Publisher object that raises an event at regular intervals (think of it something like a clock tick). I then have 100s (or 1000s) of subscriber objects (all instances of a single type or two) ...
kmote's user avatar
  • 3,372
5 votes
1 answer
3k views

I'm currently looking into setting up a publish subscribe messaging infra structure for our microservice based platform. The new setup is meant to replace our current kafka based one, with something ...
vruum's user avatar
  • 161
2 votes
1 answer
480 views

for our project, we are using micro services with API gateway pattern. One of the features that the client do is to generate a report. Client, fills a form and uploads a file and our system will ...
melis's user avatar
  • 123