Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Eclipse Plug-in Development

You're reading from   Mastering Eclipse Plug-in Development Build modular applications on Eclipse by defining custom extension points and using OSGi services

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783287796
Length 362 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Bandlem Limited Bandlem Limited
Author Profile Icon Bandlem Limited
Bandlem Limited
Alex Blewitt Alex Blewitt
Author Profile Icon Alex Blewitt
Alex Blewitt
Arrow right icon
View More author details
Toc

Designing an event-based application


Firstly, decide if using an event-based paradigm for the application makes sense. Event-driven systems are very useful if they meet the following characteristics:

  • Components are loosely coupled

  • Operations can be processed asynchronously

  • The state of an operation may be part of a transient (in-memory) workflow

  • Events can be broadcast and received by multiple listeners

  • There is a standard agreement for what details an event should have

  • The event topics are (or become) known at development time

On the other hand, the following are not suitable for (OSGi) event-driven systems:

  • Where the state of the workflow is not only UI-based but part of the domain

  • Where the consumption of an event is handled transactionally

  • Where large volumes of events can throttle single-threaded delivery

  • Where there is a lack of event payload structure

  • Where there is a requirement for a synchronous response to occur

Componentizing the application

The first step in designing an event-driven system...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image