1.4.7 • Published 5 months ago

syncactive v1.4.7

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 months ago

syncactive

Features

Contexts

Execution contexts within methods of an Active scopes the activity to a purposea named with the method itself, but contextualized by:

  • Method parameters and declaration
  • Instance state and configuration
  • Active hierarchy state and configuration
  • Process/window environment

Instrumentation should be supported at launch and/or on demand. And they need to also be recoverable.

  const ctx = this.ctx({ ssid })
  // do work here 
  ctx.end();

Hey

  /** Define the context within a method to extract the contextual information
   *  as well as contextifying 
   */
  async doSomething(session, data, opts) 
    // @context { pid:process.pid, name:this.name, ssid:session.id, \
    //            rqid:data.rqid }
  {
    this.log.info('Received data: %s', session);
  }

Lifecycles

Attach Sequence

Attachment's purpose is to secure external resources prior to starting to services. This may be to connect to a database or an external API. These services may fall into one of the following categories:

  1. Resources - connected

Attaching

Configuration

Start Sequence

The "started" state indicates readiness to produce and consume requests and operations. Here resources are connected, authenticated, etc. In this step, any persistent subscriptions or streams required must be set up.

Stop Sequence

1.4.7

5 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.10.0

2 years ago

0.11.0

2 years ago

0.10.1

2 years ago

0.9.1

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

1.0.0

2 years ago