Bytewax v0.18 - Elevating Stream Processing to New Heights 🧗‍♀️ 🧗‍♂️

By Oli Makhasoeva
Release v0.18.0 is here!

We're thrilled to announce the release of Bytewax v0.18, marking a significant step forward in capabilities. This update brings a lot of new features, optimizations, and changes that cater to the evolving needs of data engineers and developers.

Complex DAG Dataflows with Joins and Multiple IO

One of the most exciting features of v0.18 is that dataflows can now be arbitrary directed acyclic graphs: Your dataflows can include multiple input sources, process each of these streams in isolation, join and merge streams together, branch off error messages and special message types, and include multiple output sinks anywhere in the dataflow. This development allows you to build more complex data processing pipelines that can better match any algorithms and analysis you want to do. Operators are now added on specific individual streams of data and return handles to multiple distinct data streams that can be specifically used later.

non linear dataflow.svg

See examples in our documentation:

join

join.svg

branch

split.svg

Enhanced Kafka & Redpanda Integration

Bytewax v0.18 introduces advanced support for Kafka and Redpanda, integrating schema registries with the addition of RedpandaSchemaRegistry and ConfluentSchemaRegistry. This release also debuts custom Kafka operators like input, output, deserialize_key, and more, offering greater flexibility and control over Kafka streams.

Supports Autocomplete and Type Checking

Bytewax is now fully type annotated, allowing your language server to provide in-editor hints and errors. See what types are flowing within each stream section, catch issues with signatures and return types in logic functions, know what operators are valid on keyed vs non-keyed streams, etc. We strongly encourage you to add type hints to your logic functions to fully realize this feature.

New Operators

We've introduced new operators, such as collect_final, reduce_final, count_window, flatten, join, and merge, to name a few. These additions provide you with a broader toolkit to tackle various data processing scenarios effectively. Please check out our documentation for more information on each.

Custom Operators in Python

You can now create new operators in Python by grouping existing operators. This allows you to package sets of operators that encode your common reusable logic you want to share among multiple dataflows or with your colleagues. You can store your custom operators in your own Python package if you desire. Read more about the custom operator API here.

For very advanced operations, we also have exposed lower-level operators to give you the full power of Bytewax from Python. The unary and flat_map_batch operators give you access lower level parts of the runtime like: timeouts, snapshotting, and batching.

Important Breaking Changes & Migration Guide Highlights

It's crucial to note several breaking changes in this release. Transitioning to v0.18 is made easier with our detailed migration guide. Here are some key points:

  • Dataflow Construction API: To support arbitrary DAG dataflows, the custom operator API, and autocomplete, steps are now added to a dataflow via stand-alone operator functions. Their arguments and behavior are unchanged.
  • Kafka/Redpanda Message Classes: KafkaSource now emits a stream of KafkaSourceMessage dataclasses to give access to all properties of the message. Update your downstream steps to use the appropriate fields.
  • SimplePollingSource Move: Update your imports as SimplePollingSource has moved from bytewax.connectors.periodic to bytewax.inputs.

In Conclusion

Bytewax v0.18 is not just an update; it's a transformation that empowers you to build more robust, efficient, and complex data processing solutions. With its enhanced Kafka support, the introduction of non-linear dataflows, new operators, and improved developer experience, we think Bytewax continues to be a great choice for data engineers and developers working with streaming data. 💛


For a more detailed breakdown of all the changes and new features, make sure to check the release notes and the comprehensive migration guide. Happy data processing!

If you want support migrating, head over to slack or contact us directly. 🐝 🐝 🐝

Stay updated with our newsletter

Subscribe and never miss another blog post, announcement, or community event.

Previous post
Oli Makhasoeva

Oli Makhasoeva

Director of Developer Relations and Operations
Oli is a passionate technologist with a background in engineering, consulting, and community building. On a break from creating content, she loves to network online & in person at meetups, conferences, and forums.
Next post