Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4043412
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:07:25+00:00 2026-05-20T13:07:25+00:00

I have an erlang project whose state is entirely read only, and composed of

  • 0

I have an erlang project whose state is entirely read only, and composed of ets tables and a compiled module. It takes a few seconds to build the tables when the code starts.

What is the best way to package this so it can be used by other applications?

Some other things to consider:

  • There are no data contention issues or changing state, so it seems as if there is no need for a gen_server.
  • I like being able to call application:start/1 and have things “just work”.
  • Some process should own the ets tables. It seems like I should not leave that up to the client code.

The above leads me to think I should create an application, and call the setup code from the supervisor’s init/1 function, but I’m unsure if this is a silly way to approach it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:07:25+00:00Added an answer on May 20, 2026 at 1:07 pm

    If the module is entirely static you won’t need any processes in such an application. If you implement the application behavior in OTP you should be able to connect the ETS tables directly to the main application process (initiate the tables in the application start/2 callback). That way you’ll have a minimal process model, allowing you to skip both the supervisor and any gen_server.

    You should certainly use OTP, but that doesn’t mean that you absolutely must have a supervisor or a gen_server.

    Use appmon to view the process hierarchy of your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started learning Erlang and am trying out some Project Euler problems
I have the following Makefile to build my erlang project: .SUFFIXES: .erl .beam .yrl
I am working on Erlang robotic project. I have made a wallfollower robot program
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008
For example i have erlang record: -record(state, {clients }). Can i make from clients
I have read one of erlang's biggest adopters is the telecom industry. I'm assuming
Assume that we have N erlang nodes, running same application. I want to share
I have a process in erlang that is supposed to do something immediately after
I have a neural network written in Erlang, and I just bought a GeForce
I have seen lots of chat examples in Erlang but what about lists, like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.