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

:waving_hand: @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.

Where Next?

Popular in News & Updates Top

bartblast
Hologram’s journey just took a significant leap forward: Curiosum is coming on board as the Main Sponsor, and I’m joining their team to w...
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 recently released Nerves 1.4.0 and an update to the Nerves new project generator, nerves_bootstrap. The biggest change is support for ...
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
Hey everyone! Work is progressing nicely on bulk updates & destroys, which are the primary missing features before I switch to focus ...
New
zachdaniel
The new Ash Framework site and installer are live. Please try it out and let me know what you think!
New
hugobarauna
Discover Livebook 0.9’s new security features, including Hubs for centralized secret management, notebook stamping, and a sneak peek into...
New
zachdaniel
Hey folks! In order to give the new AshSqlite a trial run and make sure its got some real usage, AshHq’s multi-package search has been re...
New
hugobarauna
Welcome to the second day of Livebook Launch Week! :tada: Today we will discuss all the new Machine Learning capabilities in Elixir and ...
New
mat-hek
Happy to announce kino_membrane - the tool for introspecting Membrane pipelines :tada: It provides interactive graphs, metrics & mor...
New

Other popular topics 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
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 43487 311
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
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31013 112
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43757 214
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement