cevado
Otp application and libraries discussion
So I’ve written an article discussing the difference between “applications” and “libraries” as OTP applications.
I’ve tried to differentiate between them in the context of OTP, and I’d like to know what people think about the points that I made on it.
Most Liked
hauleth
The difference is similar as in OS libraries vs applications (in context of system supervisor). Library is just set of functions grouped in the modules where application is something that can run on its own. Good example there can be OpenTelemetry API vs OpenTelemetry SDK where the first one is “library of functions” and second one is “independent application with own supervision tree”.
cevado
i’ve moved it to https://cevado.wtf/
i’ll make that post available again and link it here.
edit:
so a link to the original blog post of this topic
https://cevado.wtf/posts/otp-applications/
keep in mind that the tone that i’m using this blogpost is not a good one, very mandatory and shitting on peoples solutions. i was planning to rewrite it with a better tone and better language, but never had the time.
cevado
I understand the difference between them. My point on the article is that creating an “application” is an anti-pattern from the point of view of OTP that should be avoided because it reduces the control we have over the execution and how other parts of the system interact with it.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








