2.2.10 • Published 6 months ago

arvo-event-handler v2.2.10

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

SonarCloud Quality Gate Status

Arvo

What is Arvo

Arvo is an opinionated approach to building event-driven systems. It's designed as a pattern and methodology rather than a rigid framework.

Principal

The core principle of Arvo is to provide a solid foundation with enough flexibility for customization, allowing you to impose your own technical posture, including security measures, event brokerage, and telemetry. While Arvo offers a structured approach, it encourages developers to implement their own solutions if they believe they can improve upon or diverge from Arvo's principles.

If you're looking to focus on results without getting bogged down in the nitty-gritty of event creation, handling, system state management, and telemetry, while also avoiding vendor lock-in, Arvo provides an excellent starting point. I believe, it strikes a balance between opinionated design and customization, making it an ideal choice for developers who want a head start in building event-driven systems without sacrificing flexibility.

Key features of Arvo include:

  • Lightweight and unopinionated core
  • Extensible architecture
  • Cloud-agnostic design
  • Built-in primitives for event-driven patterns
  • Easy integration with existing systems and tools

Whether you're building a small microservice or a large-scale distributed system, my hope with Arvo is to offers you some of the tools and patterns to help you succeed in the world of event-driven architecture.

Arvo suite

Arvo is a collection of libraries which allows you to build the event driven system in the Arvo pattern. However, if you feel you don't have to use them or you can use them as you see fit.

ScopeNPMGithubDocumentation
Orchestrationhttps://www.npmjs.com/package/arvo-xstate?activeTab=readmehttps://github.com/SaadAhmad123/arvo-xstatehttps://saadahmad123.github.io/arvo-xstate/index.html
Corehttps://www.npmjs.com/package/arvo-core?activeTab=readmehttps://github.com/SaadAhmad123/arvo-corehttps://saadahmad123.github.io/arvo-core/index.html
Event Handlinghttps://www.npmjs.com/package/arvo-event-handler?activeTab=readmehttps://github.com/SaadAhmad123/arvo-event-handlerhttps://saadahmad123.github.io/arvo-event-handler/index.html

Arvo - Event Handler

This package contains the event handler primitive required to enable an Arvo Event Driven System. These are light weight classes and types which take care of event listening, contract bound type inference, distributed open telemetry and much more.

Documentation & Resources

SourceLink
Packagehttps://www.npmjs.com/package/arvo-event-handler?activeTab=readme
Githubhttps://github.com/SaadAhmad123/arvo-event-handler
Documenationhttps://saadahmad123.github.io/arvo-event-handler/index.html

Installation

You can install the core package via npm or yarn

npm install arvo-event-handler arvo-core
yarn add arvo-event-handler arvo-core

Components

There 2 main types of event handlers in Arvo event driven system

  • ArvoEventHandler is designed to facilitate the handling of events as per an ArvoContract (see arvo-core). It provides a robust and flexible way to create, manage, and execute event handlers for Arvo-based event driven systems.
  • ArvoEventRouter is designed to route ArvoEvents to appropriate ArvoEventHandlers. It provides a centralized mechanism for managing and executing multiple event handlers based on event types.
  • MultiArvoEventHandler is a flexible and powerful event handling class designed to process multiple event types across different ArvoContracts. This handler offers greater versatility compared to the more specialized ArvoEventHandler, as it's not bound to a specific contract or event type.

Getting Started

To start using Arvo Event Handlers in your project:

  • Install the package as shown in the Installation section.
  • Import the necessary components:
import {
  createArvoEvent,
  createArvoContract,
  createArvoContractLibrary,
  createArvoEventFactory,
} from 'arvo-core';

import {
  createArvoEventHandler,
  createMultiArvoEventHandler,
  createArvoEventRouter,
} from 'arvo-event-handler';
  • Begin defining your events, contracts, and handlers using the provided classes.

License

This package is available under the MIT License. For more details, refer to the LICENSE.md file in the project repository.

Change Logs

For a detailed list of changes and updates, please refer to the document file.

SonarCloud Metrics

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%) Lines of Code Reliability Rating Reliability Rating Security Rating Technical Debt Maintainability Rating Vulnerabilities

2.2.7

6 months ago

2.2.10

6 months ago

2.2.8

6 months ago

2.2.5

6 months ago

2.2.6

6 months ago

2.2.1

7 months ago

2.2.0

7 months ago

2.1.12

7 months ago

2.1.9

7 months ago

2.1.10

7 months ago

2.1.11

7 months ago

2.1.4

7 months ago

2.1.3

7 months ago

2.1.6

7 months ago

2.1.5

7 months ago

2.1.8

7 months ago

2.1.7

7 months ago

2.1.2

7 months ago

2.1.1

7 months ago

2.1.0

7 months ago

2.0.3

8 months ago

2.0.4

8 months ago

2.0.2

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.1.23

8 months ago

1.1.25

8 months ago

1.1.24

8 months ago

1.1.19

9 months ago

1.1.18

9 months ago

1.1.22

9 months ago

1.1.21

9 months ago

1.1.17

9 months ago

1.1.12

9 months ago

1.1.16

9 months ago

1.1.15

9 months ago

1.1.14

9 months ago

1.1.9

9 months ago

1.1.8

9 months ago

1.1.7

9 months ago

1.1.11

9 months ago

1.1.10

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.3

9 months ago

1.1.2

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.1

10 months ago