TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a CQRS/ES web application in Elixir using Phoenix

2 pointsby slashdotdashover 8 years ago

1 comment

slashdotdashover 8 years ago
A case study describing how I built a web app following a Command Query Responsibility Segregation and event sourcing (CQRS&#x2F;ES) pattern. In Elixir using the Phoenix Framework.<p>It uses two open-source Elixir libraries I&#x27;ve authored to provide the building blocks for such applications:<p>* EventStore: A CQRS event store that uses PostgreSQL (v9.5 or later) as the underlying storage engine. [1]<p>* Commanded: Provides support for command registration and dispatch; hosting and delegation to aggregate roots; event handling; and long running process managers. [2]<p>It&#x27;s an unorthodox approach to building Phoenix web apps. The article details why you might consider applying it.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;slashdotdash&#x2F;eventstore" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;slashdotdash&#x2F;eventstore</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;slashdotdash&#x2F;commanded" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;slashdotdash&#x2F;commanded</a>