Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Optimistic Microservices Architecture at Billme

An Optimistic Microservices Architecture at Billme

Avatar for Khemtat Lengpaiboon

Khemtat Lengpaiboon

October 31, 2018

More Decks by Khemtat Lengpaiboon

Other Decks in Technology

Transcript

  1. Copyright © 2018 Billme (Thailand) co., ltd. MONOLITH ARCHITECTURE MICROSERVICES

    ARCHITECTURE User Interface Business Logic Data Access Layer Microservice Microservice Microservice Microservice Microservice Web UI Mobile UI Web UI Monolith vs Microservices Architecture
  2. Copyright © 2018 Billme (Thailand) co., ltd. Business Application Core

    Service Synchronous Asynchronous Proxy Server Event-Driven Microservices Architecture
  3. Copyright © 2018 Billme (Thailand) co., ltd. Billme Platform Architecture

    Event Published Event Consumed Document Service Public Billing REST API 3rd Party Service POST GET Billing Management REST API POST GET POST GET Member Management REST API Monitor Service Event Published Event Consumed Event Published Event Consumed Event Published Event Consumed Event Published Event Consumed Event Published Event Consumed
  4. Copyright © 2018 Billme (Thailand) co., ltd. Event Published Event

    Consumed Public Billing REST API Billing Management REST API Member Management REST API Event Published Event Consumed Event Published Event Consumed Event Published Event Consumed Event Published Event Consumed Event Published Event Consumed POST /api/payments GET /api/payments/:id POST /api/billings GET /api/billings/:id POST /api/users GET /api/users/:id Document Service 3rd Party Service Monitor Service Billme Platform Architecture
  5. Copyright © 2018 Billme (Thailand) co., ltd. Bill Created Payment

    Uploaded Notification Sent Account Registered Profile Updated Payment Uploaded Bill Reconciled Bill Created Document Generated StatefulSet Deployed Container Down Public Billing REST API Billing Management REST API Member Management REST API Webhook Added Document Service 3rd Party Service Monitor Service Billme Platform Architecture POST /api/payments GET /api/payments/:id POST /api/billings GET /api/billings/:id POST /api/users GET /api/users/:id
  6. Copyright © 2018 Billme (Thailand) co., ltd. Bill Created Payment

    Uploaded Notification Sent Account Registered Profile Updated Payment Uploaded Bill Reconciled Bill Created Document Generated StatefulSet Deployed Container Down Public Billing REST API Billing Management REST API Member Management REST API Webhook Added POST /api/payments GET /api/payments/:id POST /api/billings GET /api/billings/:id POST /api/users GET /api/users/:id Document Service 3rd Party Service Monitor Service Business Application Core Service Billme Platform Architecture