messaging - a solution to reduce coupling

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

Upload: betclic-everest-group-tech-team

Post on 14-Jul-2015

1.106 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Messaging - A solution to reduce coupling

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

Page 2: Messaging - A solution to reduce coupling

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

Page 3: Messaging - A solution to reduce coupling

How software evolves?

Page 4: Messaging - A solution to reduce coupling

Scenario – A ‘simple’ card payment

In the beginning everything was simple

Page 5: Messaging - A solution to reduce coupling

Scenario – A ‘simple’ card payment

Then we needed to introduce antifraud

checks and update the user profile

Page 6: Messaging - A solution to reduce coupling

Scenario – A ‘simple’ card payment

Then we needed to send an email

acknowledgement to the user

Page 7: Messaging - A solution to reduce coupling

Scenario – A ‘simple’ card payment

Then we needed to check whether the user

was eligible for a bonus

Page 8: Messaging - A solution to reduce coupling

Scenario – A ‘simple’ card payment

Then we needed to check whether we need

to give commission to our affiliates

Page 9: Messaging - A solution to reduce coupling
Page 10: Messaging - A solution to reduce coupling

But what happens if one of the

dependencies fails?

Page 11: Messaging - A solution to reduce coupling

Does everything need to execute in

sequence?

Page 12: Messaging - A solution to reduce coupling

Required

Not required

Does everything need to execute in

sequence?

Page 13: Messaging - A solution to reduce coupling

Message based decoupling

Page 14: Messaging - A solution to reduce coupling

Messaging PatternsCompeting Consumers

Message

Queue

Producer1

Producer2

Producer3

Consumer1

Consumer2

Consumer3

Page 15: Messaging - A solution to reduce coupling

Messaging PatternsPublish / Subscribe

Queue1

Producer1

Producer2

Producer3

Consumer1

Consumer2

Consumer3

Exchange

Queue2

Page 16: Messaging - A solution to reduce coupling

Messaging PatternsRequest / Reply (RPC)

Queue1Requestor1 Replier1Exchange1

Queue2 Exchange2

Page 17: Messaging - A solution to reduce coupling

Messaging Advanced Patterns

• Control Bus

• Detour

• Wire Tap

• Smart Proxy

http://www.eipatterns.com

Page 18: Messaging - A solution to reduce coupling

Possible technologies that can be used

Client Web Servers Message Queue

Worker Server Worker Server

Page 19: Messaging - A solution to reduce coupling

Curious to learn more?

Page 20: Messaging - A solution to reduce coupling

Interested to implement in your solution?

Page 21: Messaging - A solution to reduce coupling

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

Page 22: Messaging - A solution to reduce coupling

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

Page 23: Messaging - A solution to reduce coupling

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 !