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 v0.8.0 is out! This release brings JavaScript interoperability - the most requested feature since the project’s inception. You c...
New
josevalim
Hi everyone, just a heads up that we announced https://livebook.dev, a website for everyone to learn more about Livebook. One of the coo...
New
hugobarauna
This post announces the Livebook desktop app, a way to install Livebook on your machine without the requirement to have Elixir installed ...
New
zachdaniel
AshCloak AshCloak is small but mighty! Simply configure the extension, and it will encrypt your attributes :partying_face: Since an exam...
New
bartblast
After building Hologram and sharing updates across various places, I’ve realized there’s a lot happening that doesn’t always make it to t...
New
zachdaniel
Ash Framework 3.0: Release Candidates! The day is finally here! This is the culmination of years of work from the Ash team and community ...
New
hugobarauna
Discover Livebook 0.9’s new security features, including Hubs for centralized secret management, notebook stamping, and a sneak peek into...
New
bartblast
Hey there! :slight_smile: We need help completing Elixir’s browser runtime by porting some Erlang functions to JavaScript. Hologram aut...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
Jskalc
LiveVue v1.0 released After four release candidates and a lot of community feedback, LiveVue 1.0 is stable :tada: I’ve built a dedicated...
New

Other popular topics Top

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
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
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
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48342 226
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement