macrocreation
Partisan for Elixir - need help for things not covered in the documentation
Hi All,
Anyone using partisan in production? Seems like an interesting framework but I can’t find any documentation on it. @cmeiklejohn any ideas?
Thanks,
Hafeez
Marked As Solved
benwilson512
Hi @daviaws, there is a section for this right here https://github.com/lasp-lang/partisan#why-do-we-need-partisan
Also Liked
aramallo
In v5 we go beyond messaging
I set myself 4 goals for v5:
- fix all known bugs in the full mesh topology (
partisan_pluggable_peer_service_managerusingpartisan_full_memebership_strategy) - fix all known bugs in the HyParView topology (
partisan_hyparview_peer_service_managerr) - Align Erlang’s and Partisan’s APIs
- Implement as much of OTP as possible
I am one test case away from having both 1 and 2 done and I consider the implementation of 3 and 4 to be good to go (OTP implementation passes the Erlang’s Test Suites)
So some of the capabilities you are asking for are already exposed by the partisan module and the partisan_gen_* behaviours.
Mind you OTP only works for full mesh topology at the moment.
aramallo
Good to hear you are interested in Partisan. As mentioned above I am maintaining the library and working hard on getting v5 out including the docs.
BTW notice the latest docs are in Partisan — partisan v5.0.0-beta.21.
Being an Erlang lib you can obviously call it from Elixir but we are currently working on having an Elixir API (wrapper modules for Erlang’s).
We’ve been using Partisan in production since v3.
Let’s see if I can answer all your questions.
- how do you connect the nodes?
Two options:
- manually by using
partisan_peer_service:join/1passing it the result of callingpartisan:node_spec/0on the target node (or building the spec by hand. - using
partisan_peer_discovery_agentwhich allows you to use a seed list of nodes or DNS lookup. Alternatively you can implement your own backed for the agent.
There is a third alternative I still need to validate works with the latest changes and is the Orchestration modules in Partisan which offer an implementation for K8s.
We are using the DNS agent within K8s with great results in production.
Is there any auth like you have with disterl.
Nope. You can use TLS though, and I will be working on enabling Cryptosign (equivalent to TLS but without certificates).
how do you enable the the different topologies (peer, client server, membership models)
You do that by setting the config parameter peer_service_manager to the module implementing the topology.
how do you do tracing and replay etc.
Some of them are enabled via config parameters (partisan_config module) and some other are defined in the Options of the API functions.
I am working on documenting those features as we speak.
josevalim
I realize I am a couple months behind but in my opinion there is no need to defdelegate. Elixir developers should have no problem using the Erlang APIs directly (and it is often encouraged!). ![]()
Popular in Questions
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
- #code-sync
- #javascript
- #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








