Questions tagged [event-driven-design]

Event Driven Design is the implementation of requirements through a queue of events that are triggered by user input. Callback functions only create event objects and add them to the queue so state remains unchanged.

241 questions
2
votes
2 answers

Event-driven programming in PL/SQL

I have two PL/SQL systems, residing in two separate databases. SystemA will need to populate SystemB's tables. This will probably be done over a datalink. Everytime a set of records is inserted in SystemB's tables, a process in SystemB must run. I…
FrustratedWithFormsDesigner
  • 26,726
  • 31
  • 139
  • 202
2
votes
1 answer

Is Event broker pass events to event processors or event processors always listen to the event Broker

I am new to Event Driven Architecture and trying to understand this. I was searching in google. I have studied for sometime. In some sites they said Event processors always listen to the Event Broker and receive the event. And in some…
vijaya
  • 315
  • 1
  • 4
  • 15
2
votes
3 answers

for loop over event driven code?

In a redis datastore I have a list of keys, I want to iterate over that list of keys and get those values from redis. The catch is I am using an event driven language, javascript via node.js If javascript were procedural I could do this function…
Daniel
  • 7,006
  • 7
  • 43
  • 49
2
votes
1 answer

Best Event-Driven Diagram

with the OOP the software design can be easly described with a class diagram. But with the event-driven programming the class diagram is not very suitable. What is (if exists) the best description diagram for this different approach?
pittuzzo
  • 493
  • 8
  • 29
2
votes
1 answer

events happening at the same time in event-driven simulator

I have been trying to develop a simple event driven simulator and started here http://stdcxx.apache.org/doc/stdlibug/11-3.html When I was playing around with the example with some modifications, I came across a condition where when two events…
user2532296
  • 828
  • 1
  • 10
  • 27
2
votes
3 answers

Domain Model with Event Sourcing

Silly question...but why do I need a Domain model at all if I use event sourcing. I have (an Event Bus of course) and Application Services with business operations that each send a Command after basic validation Command Handlers which receive…
Jeff
  • 35,755
  • 15
  • 108
  • 220
2
votes
3 answers

How can I handle all my errors/messages in one place on an Asp.Net page?

I'm looking for some guidance here. On my site I put things in Web user controls. For example, I will have a NewsItem Control, an Article Control, a ContactForm control. These will appear in various places on my site. What I'm looking for is a way…
Armstrongest
  • 15,181
  • 13
  • 67
  • 106
2
votes
1 answer

Exception handling and state control in an Event Driven Architecture

I've been reading up a lot about the event driven architecture (EDA) design pattern, and while it appears exceptionally powerful (dare I saw beautiful?) I'm confused about two things: one, how to control conditional logic, and two, how to control…
AdrianGW
  • 143
  • 1
  • 8
2
votes
1 answer

Using the value from callback

I am developing application in Node.js with ExpressJS. I am new to event-driven development and I have a basic question about event-driven architecture and visibility. I have a service which needs to make several MySQL queries and return them as one…
Georgi
  • 320
  • 4
  • 18
2
votes
2 answers

How to develop node.js run-time strategy?

Node.js approach is event driven and I was wondering how would you tackle the problem of when to fire off an event? Lets say that we have some actions on a web application: create some data, serve pages, receive data etc. How would you lay out…
qballer
  • 2,033
  • 2
  • 22
  • 40
1
vote
2 answers

How Event Driven Architecture Know When Request is Complete?

Let's say there's a service called "CreateOrder". Let's say as well that the service depends on "Inventory" service to check whether the items in the order are available, and also "Location" service that determines whether the shipping destination…
Mycotina
  • 369
  • 3
  • 11
1
vote
2 answers

Microservices streaming data vs events

In microservices architecture, you can follow an event driven architecture where you want to publish events, doubt it’s about size of the payload. What is a reasonable amount of data to be there? You can publish an event with a complete set of data…
1
vote
0 answers

Creating an event driven architecture using Django

I would like to create an event driven architecture in Django. Every time a database record is created, updated or deleted, i would like to create and event, posting it to a queue ( like kafka, sqs, or something similiar). I know that Django has a…
1
vote
1 answer

How will Kafka manage order of events if 1 Topic and 1 consumer in 1 consumer group but 1 consumer is running on multiple machine

Recently I was given a situation: Events are being published to 1 Topic Given we have 1 consumer in 1 consumer group. In order to keep the pace of produced message and consumeed message we have running 10 instances of coneumer on 10 different…
1
vote
1 answer

Migrating an asynchronous businness flow to an event-driven system

In the effort to redesign an asynchronous flow based functional service to an event driven one, we have come up with changes on different part of this system. The service receives various statuses from external services through the API, which does…
vvra
  • 2,832
  • 5
  • 38
  • 82