Search⌘ K
AI Features

Adding Persistence as a Boundary Service

Explore how to add persistence as a boundary service in Elixir projects by separating concerns between core and boundary code. Understand the role of Ecto in managing data layers and concurrency, and learn how to save user responses efficiently while maintaining project structure.

Challenges in implementing the data layer

In most Elixir projects, we inevitably begin our data layer with schemas and go from there. We tack on queries and services that use them to do the following:

  • Count

  • Save

  • Summarize things

The persistence framework Ecto makes that much easy. What emerges might be a unified API, but it will be one that ...