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.

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
129 views

Pub-Sub pattern and instance replication

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 ...
3
votes
0answers
232 views

Looking for design pattern to represent shared state in music sequencer

I like to give lots of context, but also to state the basic question up top as concisely as possible. Feel free to read a little or a lot. I'm working on a music sequencer, and have been happy so far ...
2
votes
1answer
96 views

Publisher-Subscriber architecture with central registry

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 ...
2
votes
0answers
39 views

Data change event publishing by microservice vs separate application - best practice

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 ...
1
vote
0answers
94 views

Flowchart symbol or pattern for Publisher/Subscriber or Listen/Notify

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 ...
1
vote
0answers
85 views

Event-based communication between microservices

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 ...
1
vote
1answer
101 views

Event sourcing access by reference

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 (...
1
vote
0answers
249 views

Lazy loading collection data through granular subscriptions and OOP (Meteor.js)

I am transforming my Meteor collection to a class I've created: People = new Mongo.Collection('people', { transform: function(doc) { return new Person(doc); } }); Person has a bunch of ...
0
votes
0answers
21 views

Pubsub message design in microservices

Example We're designing a social network, and when the user logs in, we need to authenticate them and then load their feed. In order to do this, the client first makes a HTTPS request to the server, ...
0
votes
0answers
24 views

Redundancy approach for Pub-Sub application with events replication

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 ...
0
votes
0answers
48 views

Broker queue and topic naming conventions

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 ...
0
votes
0answers
35 views

WebApp architecture with multiple client

I'm investigating how I could achieve a project I've been thinking of for a while. Let me explain the project (I will not go into too much details, but I think what I'll write will be enough). So, I ...
0
votes
0answers
32 views

How to narrow time window for published data

I have a system organized in microservices: we can simplify the structure with backend server, frontend server and client. Data are quite limited (hundreds of redis keys) and each client can recevie ...
0
votes
0answers
51 views

Architecture for Data Pipeline (ETL) on GCP

I want to create a Data Pipeline on GCP, after a lot of research I decedide to use Pub/Sub to send the data and Dataflow (Apache Beam) to subscribe to that Topic in Pub/Sub and save the data in the ...
0
votes
0answers
59 views

Using a message queue or pub / sub solution for connecting frontend to backend instead of REST APIs

I own a dell r620 server at home and want to make more use of it. Typically its my staging environment as my internet is currently ipv6 with dslite so I can’t port forward. But I can easily call and ...
0
votes
0answers
57 views

Is it ok to have a mix of PubSub and Request/Reply in a WebSocket server (focus on unit-test)?

I'm using Node.JS to build a system where the data get consumed by WebSocket requests, instead of classical REST API calls. WebSockets were used for realtime bidirectional communication, but then were ...
0
votes
0answers
22 views

How to scale raft state to dozens of followers?

I'm looking into developing a distributed pubsub with p2p messaging akin to ROS where instead of being brokered, messages are transported directly from producer to consumer. XY problem - each node ...
0
votes
0answers
13 views

How to design event processing on cloud with write backs to primary data source

I have an application which mainly deals with business workflow management. In this, there are going to be many events which will be processed async. The application raises the event and these events ...
0
votes
0answers
51 views

Preferrable way to send push messeges?

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 ...
0
votes
0answers
164 views

Is NSNotificationCenter an implementation of a PubSub model?

I am trying to understand the subtleties of Publisher-subscriber and similar notification mechanisms. I was checking Cocoa NSNotificationCenter, but it's unclear to me if it can be defined as a PubSub,...
-1
votes
1answer
41 views

pub/sub events to/from microservices in different languages

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 ...