JILL24

JILL24

HTTP API endpoints in python to specific GenServers in Elixir

I’m trying to understand how these large platforms like Discord or slack handle event transmission and routing from python whixh handle api endpoints to specific genserver (Guild) in elixir.

how is it then routed to specific GenServers (such as those managing guilds or channels) in Elixir? How does Python, for instance, send events in real-time to Elixir processes, especially to specific GenServers?

Any insights on how to achieve this would be greatly appreciated!

First Post!

arcyfelix

arcyfelix

Probably they use heavily background jobs with Celery or Dask.

As far as I know, Discord’s backend is written in Elixir and Erlang, but I might be wrong.

Last Post!

JILL24

JILL24

i also think they use celery but then a thought came to my mind about, how a celery task reach to certain guild(genserver) in discord?

then i thought about two options,

first, they use one queue per guild and guild subscribe that specific queue but scaling 19 million queue is very problamatic and don’t know how many dm and group dm channels.

second, one queue shared by each guild but then again problem arise how a guild retreive only specific task.

whats your thought?

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
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
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
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
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 55125 245
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
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement