Questions tagged [event-based-programming]

Event-based-programming is a coding style which components born with high cohesion and communicate to each other by sending messages through Events and Delegates. Their behavior doesn't take other logics into account, they just provide services to them through the use of Events and Delegates.

Event-based-programming is a coding style which makes different coarse and fine grained components to communicate to each other sending messages through Events and Delegates.

Components in event-based-programming has a high level of cohesion because such style "ignores" who is using them in high level thinking (or process). The only interest is to provide services by signaling messages.

Normally you'll find structure like 3 classes, which one class A coordinate the work of the class B and class C. Class B and C doesn't know nothing about each other and nothing about the class A, but class A orchestrates the work and message direction of both class B and class C. The only runtime and buildtime coupling happens on A, which may need the existence of B and C.

Ted Faison, has a fantastic work in the book Event-Based programming - Taking events to the Limits is one of the good source about that. This programming style has is easily found embody in frameworks like Windows Workflow foundation and kind of.

This programming style is more used by Seniors developers, with more then 7 years working software services.

48 questions
1
vote
1 answer

Reactive systems - Reacting to time passing

Let's say we have a reactive sales forecasting system. Every time we make a sale we re-calculate our Forecast for future sales. This works beautifully if there are lots of sales triggering our re-forecasting. What happens however if sales go from…
Felteh
  • 53
  • 8
1
vote
1 answer

Call EAP Web-service method from code expects IAsyncResult

We have Web Service proxy which has asynchronous method based on Event-based Asynchronous Pattern. But the client code we are making call to web-service is asynchronous but implemented with Asynchronous Programming Model (APM) and it expects Web…
1
vote
0 answers

What is thrift event base and how it's implemented?

I'm starting to use thrift but i couldn't find a good documentation about basic architecture of thrift. The only thing which i know is we have to queue events into eventBase. Can anyone explain more about Thrift EventBase?
user1159517
  • 5,390
  • 8
  • 30
  • 47
1
vote
1 answer

How to consume web service adheres to the Event-based Asynchronous Pattern?

I am following the example from http://msdn.microsoft.com/en-us/library/8wy069k1.aspx to consume a web service implemented (by 3rd party) using the Event-based Asynchronous Pattern. However, my program needs to do multiple calls to the…
Chris
  • 657
  • 1
  • 9
  • 17
1
vote
2 answers

Grail or Ruby on rails for an highly interactive event based web application?

With Java and Perl background, I have narrowed down the web framework choices to Grail or RoR. The web application is a highly interactive content management app ran on private cloud. One vision is to make all the widgets on the web pages to be…
user200048
  • 41
  • 1
  • 3
0
votes
1 answer

ADF pipeline not triggered on 'appendblob' event type in ADLS Gen2

I have set up an ADF pipeline to trigger whenenver a new file lands in the ADLS Gen2(source). The pipeline should copy the json file from ADlS(Gen2) and sink in Azure SQL db. In ADF, I am using event based trigger: Type: BlobEventTrigger , Event :…
0
votes
0 answers

python fail to read raw video file

I am working on event-based video processing. I am new to this now and I have some problems with loading the raw video file into python. Some suggestions would be greatly appreciated! I first tried to read the file directly but got an…
0
votes
0 answers

How does the linux kernel listen to unblocking events?

I have a student question I recently learned about how a system call such as read can block a process, and such processes will be put in the Blocked state until data becomes available in whatever it's reading from. Or waitpid can block a process…
0
votes
1 answer

How to make sure all cases are covered in an event-based concurrent setup?

In SICP 3.4.2 there is the problem of the order of events in the different processes. Suppose we have two processes, one with three ordered events (a,b,c) and one with three ordered events (x,y,z). If the two processes run concurrently, with no…
0
votes
1 answer

C# - Handling Fault Exceptions in event-based WCF proxy

I am consuming a WCF service using an event-based proxy generated by Visual Studio. I have run into an issue, where my application will hang if the call to the service times out. The call to the service is as follows: ServiceClient client = new…
Kizari
  • 89
  • 8
0
votes
1 answer

Android Studio - access main loop

mainly just looking for the place where I can call a method every single loop. I'd like to increase/decrease the Y of a button over a period of time. Can this be done without an event system?
0
votes
0 answers

gateway/reverse proxy implementation in servlet container

I'm trying to make the below model 'a non blocking IO' model. Flow: servlet filters intercept and do some business (authentication,authorization,wrapping the request) depending upon the request method, apache http client(library)is used to make…
0
votes
1 answer

jQuery EventBus - unsubsribe on unload

Suppose I want to implement a simple EventBus pattern in javascript using jQuery. The page has a div where I load some dynamic content using $().load(). This content has some javascript code which subscribes to some events on…
ike3
  • 1,760
  • 1
  • 17
  • 26
0
votes
0 answers

Login page to call a WCF service and get a response when done ASYNC

Well... I have a Login page and a WCF implanting the Event Based Async pattern. Eventually what I need to do here is to make my async call to the WCF method and the execution should wait for the response before continuing with the authentication or…
0
votes
4 answers

Proper place to call an event?

I have a Windows Form project that I've just started. On the form I have a listbox that I'm loading with Products. When someone double clicks a Product, I want it to raise a ProductChanged event. Other things in my project will subscribe to this…
Slapout
  • 3,759
  • 5
  • 40
  • 61