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

Building reliable APIs

Building reliable APIs

mattheath

July 10, 2018
Tweet

More Decks by mattheath

Other Decks in Programming

Transcript

  1. Contacting us Using your debit card Making payments Freezing your

    card 
 Viewing your balance Viewing recent transactions Sending emoji reactions Setting your profile picture Viewing merchant logos
  2. Contacting us Using your debit card Making payments Freezing your

    card 
 Viewing your balance Viewing recent transactions Sending emoji reactions Setting your profile picture Viewing merchant logos
  3. ?

  4. ?

  5. API

  6. API

  7. API Gateway API Service API Service API Service API Service

    API Service API Service API Service API Service
  8. pod

  9. pod

  10. pod

  11. pods service routing - static cluster IP managed replicas resource

    allocations rollout strategies liveness checks anti-affinity, etc kubedns routing - “service name”
  12. ?

  13. Service Discovery Load Balancing Timeouts and Expirations Retries Rate Limiting

    Connection Pooling Circuit Breaking Failure Detection Metrics and Tracing Interrupts Context Propagation
  14. Service Discovery Load Balancing Timeouts and Expirations Retries Rate Limiting

    Connection Pooling Circuit Breaking Failure Detection Metrics and Tracing Interrupts Context Propagation
  15. API Service Service A Service B Load Balancer Edge Gateway

    Service C Service D Service E Service D
  16. API Service Service A Service B Load Balancer Edge Gateway

    Service C Service D Service E Service D
  17. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  18. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  19. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  20. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  21. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  22. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  23. API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed

    apns API card-api card-processing cards transactions balance transaction-enrichment merchant feed-generator feed apns
  24. Masterless systems No single points of failure Simple / small

    components Minimise critical path Queue deferrable tasks Automated failure correction