messaging - a solution to reduce coupling

Post on 14-Jul-2015

1.106 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Messaging – A solution to reduce coupling(Robust and Resilient Architecture)

Less tolerant and resilient to problems

Changes to one module forces a

ripple effect of changes to other modules

Highly dependent solutions

Require more effort to maintain

How software evolves?

Scenario – A ‘simple’ card payment

In the beginning everything was simple

Scenario – A ‘simple’ card payment

Then we needed to introduce antifraud

checks and update the user profile

Scenario – A ‘simple’ card payment

Then we needed to send an email

acknowledgement to the user

Scenario – A ‘simple’ card payment

Then we needed to check whether the user

was eligible for a bonus

Scenario – A ‘simple’ card payment

Then we needed to check whether we need

to give commission to our affiliates

But what happens if one of the

dependencies fails?

Does everything need to execute in

sequence?

Required

Not required

Does everything need to execute in

sequence?

Message based decoupling

Messaging PatternsCompeting Consumers

Message

Queue

Producer1

Producer2

Producer3

Consumer1

Consumer2

Consumer3

Messaging PatternsPublish / Subscribe

Queue1

Producer1

Producer2

Producer3

Consumer1

Consumer2

Consumer3

Exchange

Queue2

Messaging PatternsRequest / Reply (RPC)

Queue1Requestor1 Replier1Exchange1

Queue2 Exchange2

Messaging Advanced Patterns

• Control Bus

• Detour

• Wire Tap

• Smart Proxy

http://www.eipatterns.com

Possible technologies that can be used

Client Web Servers Message Queue

Worker Server Worker Server

Curious to learn more?

Interested to implement in your solution?

Find out more• On https://techblog.betclicgroup.com/

About Us• Betclic Everest Group, one of the world leaders in online

gaming, has a unique portfolio comprising variouscomplementary international brands: Betclic, EverestPoker/Casino, Bet-at-home, Expekt, Imperial Casino, Monte-Carlo Casino…

• Through our brands, Betclic Everest Group places expertise,technological know-how and security at the heart of ourstrategy to deliver an on-line gaming offer attuned to thepassion of our players. We want our brands to be easy to usefor every gamer around the world. We’re building ourcompany to make that happen.

• Active in 100 countries with more than 12 million customersworldwide, the Group is committed to promoting secure andresponsible gaming and is a member of several internationalprofessional associations including the EGBA (EuropeanGaming and Betting Association) and the ESSA (EuropeanSports Security Association).

We want our Sports betting, Poker, Horse racing andCasino & Games brands to be easy to use for everygamer around the world. Code with us to make thathappen.

Look at all the challenges we offer HERE

Check our Employer Page

Follow us on LinkedIn

WE’RE HIRING !

top related