Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Microservices Application Pattern



Please see the example applications developed by Chris Richardson. These examples on Github illustrate various aspects of the microservice architecture.


Resulting Context

Benefits

...

  1. 2 parties complete an atomic swap of asset 1 for asset 2 without risk
  2. contract config defines terms of the swap
  3. if swap can't meet completion criteria, swap transaction is reversed for all parties returning initial states for each
  4. optionally, a 3rd party notary service may need to approve the transaction
  5. optionally, a 3rd party observer service may record the transaction
  6. optionally, the 2 parties may be on different networks


model

  1. create shared transaction manager with workflow from the contract config
  2. each transaction has a unique ID
  3. contract takes control over both assets from each party
  4. after each step, the contract instance is updated for both parties and confirmed
  5. signatures and consents required by all parties for each step
  6. state changes are validated  as complete on each ledger for the current step before moving to next step
  7. if completion criteria for a step not fulfilled by X time, the transaction is cancelled and all parties are restored to initial states


context

assume 2 different orgs on 2 different blockchains on 2 different platforms want to execute a sale using an order (any type of asset )

...