files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring...

17
&

Transcript of files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring...

Page 1: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

&

Page 2: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

Page 3: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

Page 4: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

Domain logic

Projections

Client

Events

Commands Queries

Page 5: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

WalletId: 123Owner: StevenBalance: €1000

WalletCreatedEvent: Id: 123, Owner: Steven> Balance: €0

CashDepositedEvent: €1500> Balance: €1500

CashWithdrawnEvent: €500> Balance: €1000

CashWithdrawnEvent: €500> Balance: €500

CashDepositedEvent: €500> Balance: €1000

Page 6: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

"Event" and “Message" are not the same thing!

Publ

ic A

PI

Commands

Route to single handlerUse consistent hashing

Return a result

Events

Distribute to all event handlersConsumers express ordering req’s

Return no resultCan be persisted

Can be a ‘source’ of agg. stateCan be used to build projections

Queries

Route with load balancingSometimes scatter/gather

Return a result

Page 7: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

code

Page 8: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

➢ “cf create-service”○○○

➢ “cf bind-service”○○

Page 9: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

➢ “cf push”

○○○○○○○○○○

Page 10: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for
Page 11: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

cf push | cf create-service | cf bind-service

Start with a Monolith

It’s easier to design & build

Page 12: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

cf push | cf create-service | cf bind-service

Strangle the Monolithusing location transparency and adding services

Page 13: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

cf push | cf create-service | cf bind-service

Separate into Microservicesmakes it easier to maintain and scale

Page 14: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

$> cf create-service axon-server

Page 15: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for
Page 16: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

Page 17: files.gotocon.com · Axon is the leading open source CQRS and Event Sourcing framework for Spring Boot. Axon Trader showcases various Axon Framework capabilities and it is built for

● starter-web