Erlang / Erlang Advanced Interview questions
What is an OTP application (.app file) and how does it differ from a single module?
An OTP application is a packaged, independently startable unit of functionality — typically a
whole subsystem (a web server, a connection pool, a whole product component) — described by a
.app file that declares its name, version, modules, registered processes, and dependencies on
other applications.
{application, my_app, [{description, "My application"}, {vsn, "1.0.0"}, {modules, [my_app_sup, my_worker]}, {registered, [my_app_sup]}, {applications, [kernel, stdlib, sasl]}, {mod, {my_app, []}}]}.
Where a module is just a unit of compiled code, an application is a lifecycle-managed unit: it has a defined
start function (the mod entry, typically starting a top-level supervisor), can declare
dependencies that must start first, and can be started, stopped, and monitored as a whole via
application:start/1 and application:stop/1, rather than by manually spawning
individual processes yourself.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
