SumoDB a Clean Persistence Layer for Erlang OTP
summary
A lightweight Erlang persistence layer that turns entity modules into database records by implementing three callbacks (sumo_schema, sumo_sleep, sumo_wake_up) and gives one-line persist/find calls. Repositories hold queries, storage plugins encapsulate drivers and emit events via chain_event. Current production use is MySQL (used successfully in a working app called Kalishita), with Postgres/SQLite coming and plans for ETS/DynamoDB/S3; limitation: one repository per entity right now.
AI-written summary · about
chapters (6)
- 0:00Start
- 2:44A lot of Duplicated Code
- 9:51Domain Events
- 10:31How can we use it?
- 12:38SumoDB + Cowboy
- 16:14Last Words
related talks
35mPersisting Relations Across Time and Space
35mPersistence pays off: a new look at rom-rb
40mPutting off Persistence
34mSimplifying Polyglot Persistence Integration with...
32mRuby Preserves
33mPersisting Object Oriented State in Functional Programming
36m"Persistence pays off: a new look at rom-rb"
51mImmutable data stores and CORS for safety, flexibility and profit
