ELSA 3.1

By Sipke Schoorstra · 2024-04-01

ELSA 3.1

Elevating Reliability, Usability, and Performance

We are excited to announce the arrival of ELSA 3.1, a version that stands as a testament to our commitment towards delivering an even more stable, reliable, and user-friendly workflow automation platform.

In case you are unfamiliar with Elsa Workflows:

Elsa Workflows is a powerful and flexible execution engine, encapsulated as a set of open-source .NET libraries designed to infuse .NET applications with workflow capabilities. With Elsa, developers can weave logic directly into their systems, enhancing functionality and automation and align seamlessly with the application’s core functionality.
Visit the ELSA documentation website for more information.

Release Overview

In this release, we’ve made significant strides in refining the features and functionalities of ELSA, focusing on enhancing system stability, reliability and performance. Here are the highlights:

New & Improved Features

  • Bulk Dispatch Workflows Activity: Introducing an activity to dispatch workflows based on a list of objects, streamlining process automation.
The Bulk Dispatch Workflows Activity
  • Parallel For Each Activity: Enables concurrent processing, optimizing workflow execution time. The key difference between For Each and Parallel For Each is that the former will schedule its Body activity one by one, after each completion of the current iteration, while the latter will schedule its Body activity immediately for all items in the list. Although the scheduled activities are still processed sequentially, these activities can run in the background, which then enables true parallel execution. This approach is discussed in more detail in my article about Parallel Task Orchestration with ELSA 3.0.
  • Workflow Cancellation: Empowering developers with the ability to programmatically cancel workflows, adding flexibility to process management.
    Here’s a sample curl to cancel a given workflow instance:
    curl — location — request POST ‘https://localhost:5001/elsa/api/cancel/workflow-instances/b355d0008d595725' \
     — header ‘Authorization: ApiKey {api-key}’
    We have also updated the UI to allow users to cancel workflows in various ways: Bulk Cancel, cancel individual workflow instances, and cancel all workflow instances of a given workflow definition.
Bulk Cancel workflows
Cancel all workflow instances of a given workflow definition
  • Workflow Definition & Instance Search: Updated with search capabilities, making navigation and management more intuitive.
A new search field was added to the Workflow Definitions list view
The Workflow Instances UI received even more search capabilities
  • Extended JavaScript Support: Array functions in JavaScript now seamlessly work with .NET lists, enhancing interoperability.
  • Workflow Input: New inputs augment rather than overwrite existing ones, preserving data integrity.

Performance and Efficiency Improvements

  • Compressed Workflow Instance Data: An optional setting to store Workflow Instance Data in a compressed format significantly reduces storage requirements.
services.AddElsa(elsa =>
{
elsa.UseManagement(management =>
{
management.SetCompressionAlgorithm(nameof(Zstd));
}
});
  • Optimized Activity Execution Contexts: We no longer persist completed Activity Execution Contexts, which cuts down on data storage and contributes to overall efficiency.

Reliability and Bug Fixes

  • Memory Leak Resolution: What can we say; fixing this critical issue was a significant improvement in the platform’s stability.
  • Serialization and Deserialization Improvements: Fixes in these areas ensure better serialization support for a variety of data types.

Developer Productivity

  • Cancellation and Alterations API: Enhanced capabilities in canceling workflows and activities offer more control over running workflows.
  • .NET 8 SDK Support: Keeping pace with the latest .NET developments, we ensure ELSA remains on the cutting edge.
  • Central Package Management: Simplifies NuGet package management across the vast array of ELSA module projects, enhancing project maintainability.
  • Writerside Implementation: An initiative to improve the documentation experience, currently in preview.

Community Shout Out

As we celebrate the launch of ELSA 3.1, we want to extend a heartfelt thank you to our vibrant community. This release was made possible by the collective effort of 24 amazing contributors, including 16 new faces who have joined us in this journey. Your dedication, creativity, and expertise have been instrumental in shaping ELSA into the powerful and versatile platform it is today.

To our new contributors, welcome aboard! Your fresh perspectives and innovative ideas have already started to make a significant impact. And to our returning contributors, your continued support and contributions are invaluable. Together, we are not just building a platform; we are crafting a community where ideas flourish, and everyone is empowered to contribute.

This diverse group of individuals, hailing from different backgrounds and bringing a wealth of knowledge and experience, embodies the spirit of open source collaboration. It’s through your contributions that ELSA continues to evolve, improve, and meet the ever-changing needs of our users.

We are inspired by your passion and commitment and look forward to achieving even greater milestones together. Thank you for your contributions, for believing in the vision of ELSA, and for being an integral part of our community. Here’s to many more collaborations and successes in the future!

Looking Ahead

Our vision for the next release, ELSA 3.2, is firmly anchored in enhancing the platform’s core capabilities. Our commitment is to deliver an even more robust, user-friendly, and secure environment for all users. Here’s a glimpse into the key areas of focus:

Enhanced Performance & Scalability with Proto.Actor

To further address and improve performance bottlenecks, we’re looking to design a robust, distributed computing layer using Proto.Actor. This strategic move, guided by expert insights, is aimed at optimizing distributed workflow processing, enhancing ELSA’s scalability and reliability in significant ways.

Role-Based Access Control (RBAC)

Advancing security with RBAC: Security remains a top priority, and with ELSA 3.2, we’re taking a significant step forward by introducing a lightweight Role-Based Access Control system. This feature will provide finer control over who can do what within ELSA, ensuring users have access only to the features and data relevant to their roles. The implementation of RBAC is fundamental to supporting secure and controlled access across ELSA’s functionalities, offering peace of mind to teams and enterprises alike.

Workflow Execution Recovery

At the heart of any robust workflow engine lies the capability to recover and resume operations seamlessly after unexpected interruptions. Recognizing the critical importance of this feature, we are excited to announce our focus on Workflow Execution Recovery for our upcoming milestone.

Multitenancy

In collaboration with our vibrant community, we’re introducing Multitenancy in our next release.

In this first iteration, we will support the shared database, shared schema multitenancy type. In this type, all tenants share the same database and schema. Data for all tenants are stored in the same tables, and a “tenant ID” column is used to distinguish between data owned by different tenants. This approach maximizes resource sharing and simplifies the architecture but requires robust data access controls to prevent data leaks between tenants.

Usability Enhancements

Recognizing the critical role of user experience, our next release prioritizes resolving longstanding usability challenges. From refining the UI for intuitive navigation to implementing lazy loading for efficiency, and correcting timezone inconsistencies, these enhancements are designed to make ELSA more accessible and enjoyable to use.

Ongoing Commitment to Code Health

A steadfast dedication to the platform’s health underpins our next efforts. ELSA 3.2 will see a concerted push to reduce technical debt and address critical bugs, ensuring the platform remains clean, efficient, and future-proof. This commitment not only enhances stability but also secures the foundation for introducing new features.

Summary

ELSA 3.1 is out and available on NuGet, marking a significant step forward in our mission to provide a top-tier workflow automation platform. This latest release is packed with improvements across the board, reflecting our unwavering commitment to reliability, usability, and performance.

With the release of ELSA 3.1 out of the door, we already set our sights on the horizon with the upcoming 3.2 milestone, which is slated for June 2024. Key among these are the introduction of multitenancy and advanced security through Role-Based Access Control (RBAC), coupled with significant performance upgrades powered by the integration of Proto.Actor for distributed computing.

The journey of ELSA is one of continuous innovation and dedication to excellence. With each release, we aim to exceed your expectations, pushing the boundaries of what is possible in workflow automation. The road ahead is filled with potential, and we invite you to join us on this exciting journey as we explore new heights with ELSA 3.2 and beyond.

Resources