syncactive v1.4.7
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:
- 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
5 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago