Shall I Use the SDK or ServiceMesh to Build a Microservice?
- The SDK applies to self-governed microservices, which enables offline debugging. Theses microservices need to be developed based on the SDK.
- The microservice built using ServiceMesh requires a ServiceMesh environment during deployment. ServiceMesh enables microservices to be easily developed, and other SDKs are not required.
ServiceMesh Scenarios
- When the service code compiled in non-Java language is reconstructed into the microservice code.
- When a Java service is reconstructed into a microservice.
- When a non-Java-SDK-based service interconnects with a Java-SDK-based service.
JAVA SDK Scenarios
- When the distributed transaction is required.
- When a microservice, especially a new microservice, is compiled by Java.
- When only HTTP1.1 is supported. If other protocols are required, you are advised to use the SDK to build a microservice.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.