changelog.com VS oban

Compare changelog.com vs oban and see what are their differences.

changelog.com

Changelog is news and podcast for developers. This is our open source platform. (by thechangelog)

oban

💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3 (by sorentwo)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
changelog.com oban
12 27
2,669 3,043
0.9% -
9.4 9.3
3 days ago 3 days ago
Elixir Elixir
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

changelog.com

Posts with mentions or reviews of changelog.com. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-30.
  • Ask HN: How does your CI/CD stack look like today?
    3 projects | news.ycombinator.com | 30 Jul 2023
    Another https://dagger.io fan here. Have been using it since late 2021 to continuously deploy a Phoenix app to Fly.io: https://github.com/thechangelog/changelog.com/pull/395. Every commit goes into production.

    This is what the GHA workflow currently looks like: https://github.com/thechangelog/changelog.com/blob/c7b8a57b2...

    FWIW, you can see how everything fits together in this architecture diagram: https://github.com/thechangelog/changelog.com/blob/master/IN...

  • Fly.io Postgres cluster went down for 3 days, no word from them about it
    9 projects | news.ycombinator.com | 20 Jul 2023
    I really like the work that you're doing Thomas, this is the right approach. FWIW, https://fly.io/blog/carving-the-scheduler-out-of-our-orchest... is one of my favourite posts on your blog.

    For everyone else reading this, we have been running https://changelog.com on Fly.io since April 2022. This is what our architecture currently looks like: https://github.com/thechangelog/changelog.com/blob/master/IN...

    After 15 months & more than 100 million requests served by our Phoenix + PostgreSQL app running on Fly.io, I would be hard pressed to find a reason to complain.

  • What Phoenix Elixir Tutorial do you want to see?
    4 projects | /r/elixir | 13 Mar 2023
  • Any good and updated open source phoenix project
    7 projects | /r/elixir | 3 Feb 2023
  • Code repositories that help you to become a better Elixir programmer
    7 projects | /r/elixir | 11 Sep 2022
  • Complete, Production-Ready Phoenix Reference Applications
    28 projects | /r/elixir | 15 Nov 2021
    Changelog.com
  • Looking for recommendation of OS phoenix app to look at
    6 projects | /r/elixir | 13 Sep 2021
  • Metaprogramming in Elixir
    5 projects | news.ycombinator.com | 22 May 2021
    I see this criticism a lot but I don't think it has anything to do with macros specifically and more so to do with lack of familiarity with Elixir. I've felt the same way about Django being magic because I had trouble following the class hierarchy. It makes a lot more sense now because I'm more familiar with Python and Django. But even today I'll be looking deeper at something and ask WTF it's doing. In that respect, Elixir codebases are easier to me. The module depth seems "shallower" and I don't have to disambiguate between what behavior is caused by class inheritance or an imported function.

    When I first tried to use Elixir several years ago Ecto.Schema [0] seemed complex and magical, but then I came to realize it's just converting module attributes to runtime code. There is not really that much complex macro logic going on.

    >This also leads to cryptic errors where you get an error in non existant lines of code.

    When was the last time you used Elixir? This isn't a problem I can recall having in the last 4 years or so of using Elixir.

    >following the control flow in Phoenix is like a maze because of all the macro substitutions.

    Can you clarify what you mean by this? A specific case as to where this happened for you would help. Phoenix's use of macros is actually pretty light [1] except for some very low level stuff. You can even see how frequently a developer will use macros in Phoenix by searching `__using__` in the codebase [2]. It's not used as much as people think. The majority is for views and controllers and only to provide a very thin layer of support on top of your regular use of code. As an example, the "macro magic" in Phoenix.Controller is just handling some basics for giving a layout and view to Plug and handling fallback actions for exceptions. You could do the plug calls manually and I think it would be safe to not use any macros in your controller code.

    Another familiarity issue with the language (and any language really) is understanding what is meaningful in a stack trace and what isn't. And the likely cause of the error in the first place. Is it syntax? Is it mistyping a variable? Is a function just used improperly? (wtf is init_p_do_apply and why does it show up in every stacktrace?) You're juggling all these different issues - learning a new paradigm, a new syntax, not knowing how to extend things. It's obviously going to be a little overwhelming and, if not strictly required, we might just pick a different language that we're more familiar with.

    [0]: https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/sch...

    [1]: https://github.com/thechangelog/changelog.com/blob/master/li... (not mine, I just go here to show the most frequent use of macros in Phoenix)

    [2]: https://github.com/phoenixframework/phoenix/search?q=__using...

  • The new changelog.com setup for 2020
    4 projects | news.ycombinator.com | 26 Dec 2020
    changelog.com used to be WordPress, then became a Phoenix app because it needed features that were hacky to implement & then manage in WP. It's more of a podcasting platform these days rather than a CMS.

    The code in this repo tells the truth about what it is, and even shows how it works: https://github.com/thechangelog/changelog.com

oban

Posts with mentions or reviews of oban. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-16.
  • How to Use Flume in your Elixir Application
    2 projects | dev.to | 16 Apr 2024
    Oban, backed by PostgreSQL or SQLite, also provides a queue-based job processing system. Exq, on the other hand, is backed by Redis. It provides features similar to Flume, but without built-in rate limiting and batch processing capabilities.
  • Postgres as Queue
    8 projects | news.ycombinator.com | 9 Feb 2024
    In Elixir land Oban[0] uses Postgres as queue and seems to work quite well.

    [0] - https://github.com/sorentwo/oban

  • Zero Downtime Postgres Upgrades
    4 projects | news.ycombinator.com | 12 Dec 2023
    I hear you on that, and can say that Postgres is incredibly capable at going beyond typical relational database workloads. One example are durable queues that are transactionally consistent with the rest of the database play a unique role in our architecture that would otherwise require more ceremony. More details here: https://getoban.pro

    We are also working on shifting some workloads off of Postgres on to more appropriate systems as we scale, like logging. But we intentionally chose to minimize dependencies by pushing Postgres further to move faster, with migration plans ready as we continue to reach new levels of scale (e.g. using a dedicated log storage solution like elastic search or clickhouse).

  • Deno Cron
    15 projects | news.ycombinator.com | 29 Nov 2023
  • Switching to Elixir
    11 projects | news.ycombinator.com | 9 Nov 2023
    You can actually have "background jobs" in very different ways in Elixir.

    > I want background work to live on different compute capacity than http requests, both because they have very different resources usage

    In Elixir, because of the way the BEAM works (the unit of parallelism is much cheaper and consume a low amount of memory), "incoming http requests" and related "workers" are not as expensive (a lot less actually) compared to other stacks (for instance Ruby and Python), where it is quite critical to release "http workers" and not hold the connection (which is what lead to the creation of background job tools like Resque, DelayedJob, Sidekiq, Celery...).

    This means that you can actually hold incoming HTTP connections a lot longer without troubles.

    A consequence of this is that implementing "reverse proxies", or anything calling third party servers _right in the middle_ of your own HTTP call, is usually perfectly acceptable (something I've done more than a couple of times, the latest one powering the reverse proxy behind https://transport.data.gouv.fr - code available at https://github.com/etalab/transport-site/tree/master/apps/un...).

    As a consequence, what would be a bad pattern in Python or Ruby (holding the incoming HTTP connection) is not a problem with Elixir.

    > because I want to have state or queues in front of background work so there's a well-defined process for retry, error handling, and back-pressure.

    Unless you deal with immediate stuff like reverse proxying or cheap "one off async tasks" (like recording a metric), there also are solutions to have more "stateful" background works in Elixir, too.

    A popular background job queue is https://github.com/sorentwo/oban (roughly similar to Sidekiq at al), which uses Postgres.

    It handles retries, errors etc.

    But it's not the only solution, as you have other tools dedicated to processing, such as Broadway (https://github.com/dashbitco/broadway), which handles back-pressure, fault-tolerance, batching etc natively.

    You also have more simple options, such as flow (https://github.com/dashbitco/flow), gen_stage (https://github.com/elixir-lang/gen_stage), Task.async_stream (https://hexdocs.pm/elixir/1.12/Task.html#async_stream/5) etc.

    It allows to use the "right tool for the job" quite easily.

    It is also interesting to note there is no need to "go evented" if you need to fetch data from multiple HTTP servers: it can happen in the exact same process (even: in a background task attached to your HTTP server), as done here https://transport.data.gouv.fr/explore (if you zoom you will see vehicle moving in realtime, and ~80 data sources are being polled every 10 seconds & broadcasted to the visitors via pubsub & websockets).

  • Show HN: A simple API/CLI for scheduling HTTP requests
    2 projects | news.ycombinator.com | 27 Sep 2023
    Hi HN!

    This is something I've been tinkering on for the past couple months. It's basically just an API/CLI for scheduling delayed or recurring jobs as HTTP requests.

    I initially built it as a personal tool to save myself a bit of time on little side projects where I've needed scheduled/recurring alerts, but decided it could be a good opportunity to practice building out a nice landing page [0] and documentation [1]. And who knows, maybe someone else will find it useful ¯\_(ツ)_/¯

    The tool relies heavily on Elixir's Oban [2] library for managing jobs, and Mintlify [3] for documentation. I also shamelessly stole most of the frontend design from Resend [4] because I'm a fan of the aesthetic and thought it would be good for my design chops to use their design as a guide. I also discovered Radix [5] UI while working on this, which ended up being immensely helpful for moving quickly on the frontend.

    Anyways, I almost certainly spent a bit too much time on small UX details that are most likely utterly inconsequential, but it was a fun exercise in polish :)

    All feedback is welcome!

    [0] https://www.booper.dev/

    [1] https://docs.booper.dev/

    [2] https://github.com/sorentwo/oban

    [3] https://mintlify.com/

    [4] https://resend.com/

    [5] https://www.radix-ui.com/

  • Choose Postgres Queue Technology
    17 projects | news.ycombinator.com | 24 Sep 2023
  • Pg_later: Asynchronous Queries for Postgres
    4 projects | news.ycombinator.com | 18 Aug 2023
    Idk about pgagent but any table is a resilient queue with the multiple locks available in pg along with some SELECT pg_advisory_lock or SELECT FOR UPDATE queries, and/or LISTEN/NOTIFY.

    Several bg job libs are built around native locking functionality

    > Relies upon Postgres integrity, session-level Advisory Locks to provide run-once safety and stay within the limits of schema.rb, and LISTEN/NOTIFY to reduce queuing latency.

    https://github.com/bensheldon/good_job

    > |> lock("FOR UPDATE SKIP LOCKED")

    https://github.com/sorentwo/oban/blob/8acfe4dcfb3e55bbf233aa...

  • Keep the Monolith, but Split the Workloads
    8 projects | news.ycombinator.com | 24 Apr 2023
    > Bad code in a specific part of the codebase bringing down the whole app, as in our November incident.

    This is a non-issue if you're using a Elixir/Erlang monolith given its fault tolerant nature.

    The noisy neighbour issue (resource hogging) is still something you need to manage though. If you use something like Oban[1] (for background job queues and cron jobs), you can set both local and global limits. Local being the current node, and global the cluster.

    Operating in a shared cluster (vs split workload deployments) give you the benefit of being much more efficient with your hardware. I've heard many stories of massive infra savings due to moving to an Elixir/Erlang system.

    1. https://github.com/sorentwo/oban

  • Library for reliably running jobs
    2 projects | /r/elixir | 23 Apr 2023

What are some alternatives?

When comparing changelog.com and oban you can also consider the following projects:

phoenix-liveview-counter-tutorial - 🤯 beginners tutorial building a real time counter in Phoenix 1.7.7 + LiveView 0.19 ⚡️ Learn the fundamentals from first principals so you can make something amazing! 🚀

broadway - Concurrent and multi-stage data ingestion and data processing with Elixir

phoenix-chat-example - 💬 The Step-by-Step Beginners Tutorial for Building, Testing & Deploying a Chat app in Phoenix 1.7 [Latest] 🚀

exq - Job processing library for Elixir - compatible with Resque / Sidekiq

ex_chain - Simple Markov Chain written in Elixir

Rihanna - Rihanna is a high performance postgres-backed job queue for Elixir

hexpm - API server and website for Hex

kafka_ex - Kafka client library for Elixir

feedx - Generic feed adding social features to current applications.

verk - A job processing system that just verks! 🧛‍

stranger - Chat anonymously with a randomly chosen stranger

honeydew - Job Queue for Elixir. Clustered or Local. Straight BEAM. Optional Ecto. 💪🍈