The architecture of modern web applications

Truong Hoang Dung
1 min readAug 17, 2018

--

Recently, i revisited Event Sourcing architecture , and i’m also learning GraphQL, i just discovered the strength of combination of both worlds, and what i could get benefit from them. Here’s my remarks:

  • Event Sourcing helps you make meaningful program right from the start. You starts an application by writing down pure domain, with ubiquitous language to model real world problem as well as solution. No HTTP, No Database, No Email sending here, just pure logic in your mind.
  • Then you plug in real EventStore and a Projection database to make sure your data now could be stored permanently.
  • The application layer now will use GraphQL to communicate with real world. It’ll talk to a Command Service to communicate with your domain model.

What you got ?

  • You can swap out database layer (as well as EventStore) if you want.
  • You can swap out application layer (Because GraphQL is language independent)
  • If you have a frontend, you don’t need to change, or you can change or swap it with whatever technologies you prefer at specific point in time.

This is my discover after combination of Event Sourcing architecture with GraphQL architecture.

--

--