Best Practices¶
This section collects best practices for the microservice engine, covering typical use cases of microservice governance, the cloud-native gateway, and the registry center. All examples are verified in real environments and can serve as references for production.
Microservices and Registry¶
-
Experience Microservice Governance with Sample Applications
Experience microservice governance features through sample applications, covering the registry and configuration center, cloud-native microservices, and the cloud-native gateway.
-
Nacos LDAP Integration for User Management
Integrate Nacos (named registry center in the microservice engine) with LDAP for unified user management.
Cloud Native Gateway¶
-
Accessing a Service through Gateway
Demonstrate how to integrate a microservice with the cloud-native gateway and access it through the gateway.
-
Gateway API Policies
Use a real microservice application to demonstrate how to configure over ten API policies, such as load balancing, timeout retry, and allow/deny lists, along with their actual effects.
-
Integrating Gateway with Service Mesh
Integrate the cloud-native gateway with the service mesh to access services in the mesh through the gateway, with full traffic governance capabilities such as virtual services and destination rules.
-
Add Custom Attributes to Gateway Request Logs
The gateway uses contour as the control plane to deliver configuration to envoy, including request log fields. This guide shows how to add custom attributes.
-
HTTP to Dubbo Protocol Dynamic Routing
Use the protocol conversion capability of Pixiu to convert the HTTP protocol to the Dubbo protocol for dynamic routing.