Micro Service Comment Micro Service Client Concat every JSON Object from internal APIs Send requests to several services concurrently Request an article entity
Go BFF will be a good choice from the aspect of performance. ◦ With goroutine, Go would handle the concurrent internal accesses rapidly. ▪ If you threw away REST and changed into RPC-call, you must send request multiple servers everytime. ▪ This means internal latency is critical for UX. ◦ Awesome packages for both of GraphQL and gRPC exist in Go community. BFF in Go
has the type system. • Instead of JSON request in like REST API or JSON-RPC, you will send `query` to GraphQL server. • Implementation in JavaScript is the most active. GraphQL introduction
golden files. ◦ Record a real request and response ◦ Mock or temporarily boot internal API ◦ Iterate recorded files and check the equality with the actual responses