Overview

This section helps you to learn about the Scheduler features, design, internal working procedure and payloads.

Features

In Microservices Framework (MSF), Scheduler provides the following features:

  • Allows configuration of multiple schedulers
  • Supports tracking or monitoring of scheduler instances at any point of time
  • Provides configuration for supplying parameters at runtime
  • Provides support for adding pre-hook and post-hook operations
  • Available and tested in all framework supported environments (that is Docker, J2EE, AWS, Azure)
  • Easy to implement and use

Design

Scheduler feature is designed based on the command-event flow in MSF. It reuses the existing command-event flow model to facilitate monitoring the status of scheduler instances at any point of time.

Below is an overview of the scheduler features execution or flow in Temenos Microservices Framework.

Internal Working

Scheduler execution takes place as per the following steps:

  1. When a scheduler is triggered, an inbox event (command event) is raised and an entry is created in ms_inbox_events table. The entries in ms_inbox_events table contains information about the event triggered such as eventType, commandType, payload, status, etc.
  2. It is then followed by business process execution that is implementation in underlying microservice.
  3. Once the business process execution completes, irrespective of success or failure, an outbox event (command event) is raised and an entry is created in the ms_outbox_events table. The entries in ms_outbox_events contains information about the triggered event such as eventType, commandType, payload, status, etc.

A flow diagram depicting the internal working of a scheduler executor is as follows:

The events raised as part of scheduler execution have the following properties:

  • "commandType": "SCHEDULER"
  • "eventType": <MSname>.<operationId>
NOTE: Since the scheduler execution makes use of inbox or outbox for monitoring scheduler instances, it's a prerequisite that inbox-outbox processing is enabled in the underlying microservice application, for effective functioning of schedulers.

Payloads

This section shows the input and output payload.


Bookmark Name Actions
Feedback
x