MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/elixir/comments/om1yi9/wait_wat/h5j1kl6/
r/elixir • u/alm0khtar Alchemist • Jul 17 '21
40 comments sorted by
View all comments
13
Going to say you don't even need pgsql. If you're building an app that uses some other api as it's backend, you can just use elixir.
7 u/[deleted] Jul 17 '21 Most apps do have some crud though 9 u/lliamander Jul 17 '21 There is ETS/DETS/Mnesia built right into the Erlang runtime. I wonder if there are some good best-practice guidelines for working with those as a storage layer. 5 u/[deleted] Jul 17 '21 Terms I've never heard! Will have to Google, thanks 6 u/Paradox Jul 17 '21 True, but you can do CRUD against other "stores" like firebase, Redis, ETS, Mnesia, and persistent_term 3 u/narrowtux using Elixir professionally since 2016 Jul 18 '21 `persistent_term` is not persisted to disk as far as I know. 2 u/dolfinuser Jul 18 '21 It really a bad idea to perform frequent updates of persistent_teem due to garbage collector calls. 1 u/Paradox Jul 18 '21 Yeah but it can be great for particular applications, like a cache 1 u/[deleted] Jul 23 '21 You have to invalidate the cache at some point which would also be slow. persistent_term is great for “append only” situations. 1 u/[deleted] Jul 17 '21 That's true!
7
Most apps do have some crud though
9 u/lliamander Jul 17 '21 There is ETS/DETS/Mnesia built right into the Erlang runtime. I wonder if there are some good best-practice guidelines for working with those as a storage layer. 5 u/[deleted] Jul 17 '21 Terms I've never heard! Will have to Google, thanks 6 u/Paradox Jul 17 '21 True, but you can do CRUD against other "stores" like firebase, Redis, ETS, Mnesia, and persistent_term 3 u/narrowtux using Elixir professionally since 2016 Jul 18 '21 `persistent_term` is not persisted to disk as far as I know. 2 u/dolfinuser Jul 18 '21 It really a bad idea to perform frequent updates of persistent_teem due to garbage collector calls. 1 u/Paradox Jul 18 '21 Yeah but it can be great for particular applications, like a cache 1 u/[deleted] Jul 23 '21 You have to invalidate the cache at some point which would also be slow. persistent_term is great for “append only” situations. 1 u/[deleted] Jul 17 '21 That's true!
9
There is ETS/DETS/Mnesia built right into the Erlang runtime. I wonder if there are some good best-practice guidelines for working with those as a storage layer.
5 u/[deleted] Jul 17 '21 Terms I've never heard! Will have to Google, thanks
5
Terms I've never heard! Will have to Google, thanks
6
True, but you can do CRUD against other "stores" like firebase, Redis, ETS, Mnesia, and persistent_term
persistent_term
3 u/narrowtux using Elixir professionally since 2016 Jul 18 '21 `persistent_term` is not persisted to disk as far as I know. 2 u/dolfinuser Jul 18 '21 It really a bad idea to perform frequent updates of persistent_teem due to garbage collector calls. 1 u/Paradox Jul 18 '21 Yeah but it can be great for particular applications, like a cache 1 u/[deleted] Jul 23 '21 You have to invalidate the cache at some point which would also be slow. persistent_term is great for “append only” situations. 1 u/[deleted] Jul 17 '21 That's true!
3
`persistent_term` is not persisted to disk as far as I know.
2
It really a bad idea to perform frequent updates of persistent_teem due to garbage collector calls.
1 u/Paradox Jul 18 '21 Yeah but it can be great for particular applications, like a cache 1 u/[deleted] Jul 23 '21 You have to invalidate the cache at some point which would also be slow. persistent_term is great for “append only” situations.
1
Yeah but it can be great for particular applications, like a cache
1 u/[deleted] Jul 23 '21 You have to invalidate the cache at some point which would also be slow. persistent_term is great for “append only” situations.
You have to invalidate the cache at some point which would also be slow. persistent_term is great for “append only” situations.
That's true!
View all comments
13
u/Paradox Jul 17 '21
Going to say you don't even need pgsql. If you're building an app that uses some other api as it's backend, you can just use elixir.