macrocreation

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

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Also Liked

aramallo

aramallo

In v5 we go beyond messaging

I set myself 4 goals for v5:

  1. fix all known bugs in the full mesh topology (partisan_pluggable_peer_service_manager using partisan_full_memebership_strategy)
  2. fix all known bugs in the HyParView topology (partisan_hyparview_peer_service_managerr)
  3. Align Erlang’s and Partisan’s APIs
  4. 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

aramallo

Hi @macrocreation

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/1 passing it the result of calling partisan:node_spec/0 on the target node (or building the spec by hand.
  • using partisan_peer_discovery_agent which 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

josevalim

Creator of Elixir

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!). :slight_smile:

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement