mirror of
https://github.com/wahyd4/knowledge.git
synced 2026-08-09 05:06:28 +10:00
1.4 KiB
1.4 KiB
Search
- ElasticSearch
- Logstash
- Kibana
APM
-
Newrelic
-
Pinpoint
Monitor
-
Bosun
-
Prometheus
API
-
RPC(remote procedure call)
- disadvantages
- coupling
- clients needs to know the request procedure names
- advantages
- more freedoms to define any requests.
- examples - https://api.slack.com/methods
- disadvantages
-
Restful /Representational State Transfer
- Easy to cache
- every url represent a resource
- disadvantages
- some special method is hard to use restful to name it. like /login, /resetpassword
- examples
- methods
- GET
- POST
- PUT - DELETE
-
GraphQL - Can define fields you want
-
gRPC
- protocol buffers
// The greeter service definition. service Greeter { // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name. message HelloRequest { string name = 1; } // The response message containing the greetings message HelloReply { string message = 1; } - A opensource remote procedure call framework based on HTTP2 and protobuf
- advantages
- baed on HTTP2, better performance
- call remote like local method, and support multiple language
- protobuf serialization and deserialization is faster than JSON
- protocol buffers
Log and Error
- Sentry