go & microservices

Post on 14-Apr-2017

1.116 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Go & Microservices

Agenda

Concept

Monolith

MicroServices

Focus

FEATURES

Communications

Why Go?

Golang

Real Case Study

delivery service

Features

User mengirimkan request via mobile app untuk memesan barang, kemudian mendapatkan dua notifikasi yaitu via push notifikasi & sms.

Architecture

Focus: Notif Service

HOW?

Golang’s Interface

Notify Runner

Notify Result

Notify Concurrent ?

Notify Result : Using Goroutine

Microservices Rules

Golang’s Error Handling

Deployment & Docker

Deployment Rules

Docker Rules

DockerFile

Metric Analysis

Calculate

Data Flow

The Roundtrip

Example: Client -> Proxy -> AMQP

TransactionID Received By Web Proxy API Publish To AMQP

TransactionID-<UUID> <in_millisecond> <in_millisecond>

TransactionID-<UUID> <in_millisecond> <in_millisecond>

Example - Service <-> AMQP

ServiceID PulledFromAMQP Processed PostedToAMQP

DeliveryService <in_millisecond> <in_millisecond> <in_millisecond>

NotifService <in_millisecond> <in_millisecond> <in_millisecond>

Example - Service -> ThirdParty

ThirdParty Latency

Parse <in_millisecond>

Twilio <in_millisecond>

top related