sorenone

sorenone

Oban Core Team

OSS Oban Web & Oban v2.19

The title doesn’t relay the depth of this announcement, but it is short, balanced, and looked good to us. From open sourcing multiple packages, to releases with features like MySQL support, to plan changes—it’s immense!

Open Sourcing Oban Web

:postal_horn: Oban Web is now open source and free (as in champagne :clinking_glasses:)! From now on, Oban Web will be published to Hex and available for use in all your Oban powered applications.

Why? Here’s some history.

Our original Oban announcement on the Elixir Forum included a screenshot of Oban Web. That was nearly six years ago now, and oy have we come a long way. Originally launched as a private beta, Web was our first foray into building a viable business model for Oban. Years ago we realized our customers needed a more complex set of tools. Thus, we released Oban Pro. Pro is where the serious business happens now, and we want more people to have Web available from the start.

If you’re a current customer, or wonder what this means for our existing subscriptions, bounce to the Simplified Plans section.

Let’s cover Oban v2.19 first, then get back to more Web news.

Oban v2.19

The latest Oban release includes a new database engine, an installer for improved UX, better logging, and more. Here are some of the highlights.

:dolphin: MySQL Support

Oban officially supports MySQL with the new Dolphin engine. Oban works with modern (read “with full JSON support”) MySQL versions from 8.4 on, and has been tested on the highly scalable Plantescale database.

Running on MySQL is as simple as specifying the Dolphin engine in your configuration:

config :my_app, Oban,
  engine: Oban.Engines.Dolphin,
  queues: [default: 10],
  repo: MyApp.Repo

With this addition, Oban can run in an estimated 10% more Elixir applications!

:alembic: Automated Installer

Installing Oban into a new application is simplified with a new igniter powered mix task. The new oban.install task handles installing and configuring a standard Oban installation, and it will deduce the correct engine and notifier automatically based on the database adapter.

mix igniter.install oban

This oban.install task is currently the recommended way to install Oban. As a bonus, the task composes together with other igniter installers, making it possible to install phoenix and oban with a single igniter.new command:

mix archive.install hex igniter_new

mix igniter.new oban_demo \
  --with phx.new \
  --with-args="--database postgres" \
  --install oban

:notebook_with_decorative_cover: Logging Enhancements

Logging in a busy system may be noisy due to job events, but there are other events that are particularly useful for diagnosing issues. A new events option for attach_default_logger/1 allows selective event logging, so it’s possible to receive important notices such as notifier connectivity issues, without logging all job activity:

Oban.Telemetry.attach_default_logger(events: ~w(notifier peer stager)a)

Along with filtering, there are new events to make diagnosing operational problems easier.

A peer:election event logs leadership changes to indicate when nodes gain or lose leadership. Leadership issues are rare, but insidious, and make diagnosing production problems especially tricky.

[
  message: "peer became leader",
  source: "oban",
  event: "peer:election",
  node: "worker.1",
  leader: true,
  was_leader: false
]

Activity for all official plugins is now logged via plugin:stop and plugin:exception events. That includes runtime information to help monitor activity and diagnose issues. For example, every time Cron runs successfully it will output details about the execution time and all of the inserted job ids:

[
  source: "oban",
  duration: 103,
  event: "plugin:stop",
  plugin: "Oban.Plugins.Cron",
  jobs: [1, 2, 3]
]

There are other notable changes such as the new Oban.check_all_queues/1 function, starting queues in parallel on init, and official JSON integration. Read more in the full Changelog.

Oban Web v2.11

Beyond preparations for open sourcing, Web v2.11 includes substantial work toward component cleanup and unification. Here are some of our favorite new features:

:dolphin::feather: MySQL and SQLite

All official engines are fully supported. Listing, filtering, ordering, and searching through jobs works for Postgres, MySQL, and SQLite. That includes the particularly gnarly issue of dynamically generating and manipulating JSON for filter auto-suggestions! Nested args queries, such as args.address.city:Edinburgh work equally well with each engine.

:control_knobs: Instance Select

The dashboard will now support switching between Oban instances.

A new instance select menu in the header allows switching between running Oban instances at runtime. There’s no need to mount additional dashboards in your application’s router to handle multiple instances. The most recently selected instance persists between mounts.

- oban_dashboard "/oban_a", oban_name: Oban.A
- oban_dashboard "/oban_b", oban_name: Oban.B
- oban_dashboard "/oban_c", oban_name: Oban.C
+ oban_dashboard "/oban"

This also eliminates the need for additional router configuration. The dashboard will select the first running Oban instance it finds (with a preference for the default Oban).

- oban_dashboard "/oban", oban_name: MyOban
+ oban_dashboard "/oban"

:yin_yang: Rebuilt Queues Page

The queue and jobs tables are fully rebuilt with shared, reusable components and matching functionality.

This enables far more powerful interaction with queues:

  • Uniform Navigation - click on any part of the queue row to navigate to details.

  • Sidebar - a new queue sidebar shows status counts and enables filtering by statuses such as paused or terminating.

  • Filtering - queues are auto-complete filterable just like jobs, making it possible to find queues running on a particular node or narrow down by status.

  • Shared Sorting - queue sorting now behaves identically to jobs, through a shared dropdown.

  • Condensed Rows - simplify the queue page by removing nested row components. Extra queue details are in the sub-queue page.

:candle: Operate on Full Selection

Apply bulk actions to all selected jobs, not just those visible on the current page.

This expands the select functionality to extend beyond the current page and include all filtered jobs, up to a configurable limit. The limit defaults to 1000 and may be overridden with a resolver callback.

:identification_card: Licensing and Installation

Oban Web v2.11 is licensed under Apache 2.0, just like Oban and Elixir itself. Previous versions are commercially licensed, therefore private, and won’t be published to Hex.

See the updated, much slimmer, installation guide to get started.

Oban Met v1.0

Oban Met is the secret sauce that powers the charts and runtime details shown in the Oban Web dashboard. It is a distributed, compacting, multidimensional, telemetry-powered time series datastore (Zang!) for Oban that requires no configuring. It gathers data for queues, job counts, execution metrics, active crontabs, historic metrics, and more.

Web is virtually useless without Met, so we’ve open sourced it as well :sparkles:!

While Met is designed for use with Web, it’s still mighty useful on its own for accessing runtime metrics and counts. Take a look at the docs for some useful examples.

Simplified Plans

As of today, Web and Web+Pro subscriptions are no longer available. Only Oban Pro.

Existing web subscriptions and license keys will continue working until you upgrade Web to v2.11+. However, you’ll continue paying for your subscription until you’re ready to upgrade (those are private packages that we’re serving still).

Legacy web customers will receive an email with an exclusive coupon to upgrade to Pro. Use this to continue receiving support and to benefit from lush features such as: workflows, chunks, decorators, structured args, hooks, global limits, dynamic plugins, and much more.

:heart_on_fire:Special thanks to all of our customers :heart_on_fire: that supported Oban and its ecosystem for the past five years. You are integral to us making open source Oban, and now Web, possible.

Most Liked

sorenone

sorenone

Oban Core Team

:wave: @jtippett

We’ve addressed the issue and appreciate your comments, reports and attempts. The manual install guide is still there for anyone who doesn’t want to use Igniter.

We believe Igniter is the future of installs for Elixir. It will have some growing pains and need some polish before it’s ready for everyone.

10
Post #4
AstonJ

AstonJ

Congratulations Shannon and Parker :tada: and thank you for open sourcing Oban Web - I’m sure sure this will make a lot of people happy! :smiley:

It’s been great seeing Oban grow over the years and you building a successful business by offering a pro service - I am sure you are an inspiration to many and I can’t wait to see what’s next for you and Oban!

Lucassifoni

Lucassifoni

Thanks a lot for this release and announcement. Being able to just “drop in” oban web yesterday evening in a nonprofit website while removing a bespoke limited equivalent is invaluable.

zachdaniel

zachdaniel

Creator of Ash

The latest version of igniter no longer uses http_util/httpc. It adds a new dependencies (optional, meaning not deployed to production unless you have some other thing that needs req in prod), but is worth it for the simplicity and for the fixed behavior :slight_smile:

dimitarvp

dimitarvp

Amazing! Congratulations and thank you very much. Oban Web being open-sourced is you pretty much doing selfless charity and I give you a deep bow or it. :bowing_man:


Some errata, if you don’t mind.

oy → boy

Link domain here should go from hexdocs.om to hexdocs.pm.


Again thank you for this! I am super interested in Oban Web, Oban Met and SQLite support and will inspect them with interest.

Where Next?

Popular in News & Updates Top

lawik
NervesHub has had a CLI for a long time. It is called nerves_hub_cli and for the longest time you’d add it as a dependency. But only once...
New
zachdaniel
Ash Framework What is Ash? Ash Framework is a declarative, resource-oriented application development framework for Elixir. A resource can...
New
ConnorRigby
This week we added official Nerves support for the OSD32MP1 line of SOMs. Currently we have tested the osd32mp1-brk breakout board, and ...
New
zachdaniel
Hey folks! I’ll be teasing some interesting bits going into Ash 3.0 while I work on it, and this is post #1! You can follow along with t...
New
mspanc
Membrane v1.2.6 has been released. What’s Changed Adjust to Elixir 1.19 by @Noarkhh in Update to elixir 1.19 by Noarkhh · Pull Request ...
New
jimsynz
As some of you know, I have been working on a tight integration between Ash and Reactor which has triggered a few small bug fixes in Spar...
New
fhunleth
We’ve released Nerves v1.3.0 with support for Elixir 1.7 and Distillery 2.0! We encountered a few bumps over the past week, but it’s look...
New
zachdaniel
What if you had full stack types for SPAs built with tech like React, Inertia, Vue, Svelte… but all of the power Ash Framework and Elixir...
New
bartblast
I’m excited to announce Hologram v0.5.0, a major evolution of the full-stack Elixir web framework! This release brings massive performanc...
New
zachdaniel
First two Ash cookbooks are live! We’re still refining the format, so please give us your feedback, good or bad! The first two are: optim...
New

Other popular topics Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
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
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement