Skip to content

Instantly share code, notes, and snippets.

View payneal's full-sized avatar
🏀
coding...

Ali Payne payneal

🏀
coding...
View GitHub Profile
@payneal
payneal / transactionalizeMicroservices.md
Created February 27, 2017 03:09 — forked from bjyurkovich/transactionalizeMicroservices.md
Example of transactionalized microservice approach...

Take for example 2 different microservices, user, address and patient with a gateway.

Upon a creation of a patient, both user and address need to also be created. Therefore, let's say that a call to create a patient comes in from the frontend client:

POST /patient
host: gateway.com
content-type: application/json
{

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL