sczyh30 / samsara-aquarius

:zap:Samsara Aquarius - a technology sharing web application written in Scala
MIT License
4 stars 1 forks source link

More event-driven, scalable, reactive microservice architecture #14

Open sczyh30 opened 8 years ago

sczyh30 commented 8 years ago

Planning to do this: make the architecture more event-driven and reactive. May use Akka to decouple components (with reactive streams) rather than invoke services directly.

And event sourcing pattern might also be a good point (e.g. for friend relation events).

sczyh30 commented 8 years ago

Event driven structure seems nice, but the application requires a large refactor to adapt to the message-based architecture. Perhaps we can add a group of Akka Actor layer...

And as for event sourcing pattern and CQRS, the Akka Persistence might be a choice, but we need to think carefully about the logic and domain design (as the DDD seems not so easy...)