/flex-accounts

Accounts-SCS für FLEX

Primary LanguageErlangApache License 2.0Apache-2.0

Event definitions

We send the following events:

-type unique_id() :: integer().
-type account_number() :: integer().
-type eventType() :: account_created | account_deleted.

-record(account_event,
  {id :: unique_id(),
  eventType:: eventType(),
  account_number:: account_number(),
  givenName:: string(),
  surname:: string()}).

How to get missing events:

  • use service name "accounts"
  • request missing events since eventNumber -> cast with following type "get_account_events_since"
-record(get_account_events_since, {
      since :: unique_id(),
      receiver_pid :: pid()
}).