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

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
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
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
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

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
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
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
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
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

We're in Beta

About us Mission Statement