Pine RocketMQ Spring Book Edition
Support function:
- Service Cluster
- Heartbeat detection
- Get client registration list
Cluster strategy adopts synchronous client registration information mode
The first pine server that receives client information, automatically synchronizes to other pine servers
Regularly check whether each service survives
If the service does not survive for a long time, it will be rejected.
Common service cluster solutions
Provide client registration information to extend the domain
<!--Adding dependencies to pom. XML-->
<dependency>
<artifactId>pine-spring-boot-starter</artifactId>
<groupId>com.github.thierrysquirrel</groupId>
<version>1.4.1.4-RELEASE</version>
</dependency>
## application.properties
pine.service-url="127.0.0.1:6060" # This is required for service startup
pine.cluster-service-url="127.0.0.1:6060,127.0.0.1:6061,127.0.0.1:6062" # If you need a cluster, please fill in this way
@SpringBootApplication
@EnablePineService
public class DemoApplication{
public static void main(String[] args){
SpringApplication.run(DemoApplication.class, args);
}
}