diff --git a/docs/2024-01-20-backend-thinking.html b/docs/2024-01-20-backend-thinking.html index cc1fd28..4057eda 100644 --- a/docs/2024-01-20-backend-thinking.html +++ b/docs/2024-01-20-backend-thinking.html @@ -124,9 +124,8 @@

Example: Business requirements says: Must match/compare user EKYC - data with Bank data (name, dob, id, ...). TODO + data with Bank data (name, dob, id, ...).

-

TODO: How to split services?

HTTP: GET/POST/...

-

Example: TODO use curl

+

Example: TODO: show API image

GRPC: use proto file as constract.

-

Example: TODO: show sample proto file

+

Example: TODO: show proto file image

There are no hard rules on how to design APIs, only some best practices, like REST API, ... @@ -180,16 +179,6 @@ for switch is mainly performance. -

- References -

References

@@ -354,11 +343,11 @@

References

diff --git a/posts/2024-01-20-backend-thinking.md b/posts/2024-01-20-backend-thinking.md index e529a53..685ce38 100644 --- a/posts/2024-01-20-backend-thinking.md +++ b/posts/2024-01-20-backend-thinking.md @@ -43,9 +43,7 @@ The question is for each new business requirements, what should we do: - Don't do anything? _Example_: Business requirements says: Must match/compare user EKYC data with -Bank data (name, dob, id, ...). TODO - -TODO: How to split services? +Bank data (name, dob, id, ...). ## Technical side @@ -58,11 +56,11 @@ wait for response. **HTTP**: GET/POST/... -_Example_: TODO use curl +_Example_: TODO: show API image **GRPC**: use proto file as constract. -_Example_: TODO: show sample proto file +_Example_: TODO: show proto file image There are no hard rules on how to design APIs, only some best practices, like REST API, ... @@ -81,8 +79,6 @@ Why do we use HTTP for Client-Server and GRPC for Server-Server? - Before ZaloPay switch to GRPC for Server-Server, we use HTTP. The reason for switch is mainly performance. -#### References - ### Message Broker **Second** way is by Message Broker, the most well known is Kafka.