Explore Asynchronous Jobs in Elixir
You have several options for how you can approach asynchronous jobs in Elixir. This is due to Elixir’s process model—we can build simple or complex job systems inside of our existing application. The number of available options can be a bit overwhelming when you first start, so we’ll look at a few common options before settling on a generic one that works for many situations.
The following examples will use a made-up piece of code that we want to make asynchronous. You don’t have to type this code anywhere; it’s only an example. Our scenario is that we have an HTTP endpoint that receives a data payload. We want to persist the payload to our database, but we also want to enrich the payload with data from a ...
Get From Ruby to Elixir now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.