springboot-zookeeper-config | springboot framwork integrated dubbo redis kafka | Application Framework library
kandi X-RAY | springboot-zookeeper-config Summary
kandi X-RAY | springboot-zookeeper-config Summary
#项目功能 1.本项目采用springboot框架,采用注解配置方式集成主流框架spring、mybatis等主流框架。 2.使用多数据源的动态切换,实现读写分离,减轻数据库压力。 3.引入kafka中间件,实现项目间解耦、异步快速批处理,并给出消息容错机制,多种方式保障消息被正确消费。 4.采用redis做缓存,将热数据缓存起来,实现快速访问,提高系统性能。 5.使用dubbo做分布式服务框架,将服务集中化管理。 6.使用配置集中化管理,省去性能调优中项目的重新部署。 #一、多数据源动态切换介绍 1.扩展spring框架,在项目启动时缓存多个数据源。 2.使用spring aop功能,运行时获取数据源,并缓存到当前的线程中。(使用者根据不同的项目修改连接点表达式) 3.本项目采用的是一主多从模式实现读写分离减压,需要数据库中的数据相同。主机模式适用于事务操作,从机模式是在从机集中轮询选出一个数据源,此适合非事务操作。 #二、消息中间件使用介绍 1.本项目采用0.9版本kafka中间件,实现消息的订阅与发布。 2.使用消费组的方式消费消息,并且可定义该消费组中的消费者数,建议不超过topic分片数。 4.消息处理逻辑需要根据业务处理,使用者可实现ConsumerCallback接口的doAction方法,定义消费者任务,即可实现业务消息的处理。 5.kafka消息容错。使用者实现CheckReConsumCallback接口的doCheck方法,定义检查任务,即可实现重新消费是失败的消息。如果还是失败,则将消息写入失败文件中,转入人工处理。 #三、免配置化的功能 #1.原理 1.项目启动时从zookeeper配置中心加载配置,并根据配置加载类 2.启动zookeeper配置监控,当zookeeper远程配置被修改时,所有监听该配置的父节点变动的项目会重新启动 3.启动定时器,定期从配置中心加载配置,如果配置有变化,则重新启动项目 #2.配置中心管理 1.配置中心可以通过zkui查看和修改 2.zkui配置可参考#3.使用步骤 1.先在zookeeper上增加项目配置文件,如果先启动项目则会找不到文件报错。(将dubboService.txt文件上传到zookeeper配置中心) 2.再启动项目.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Bean factory bean
- Sets page plugin
- Setmybatis cache
- Main entry point
- Handle check
- Load properties
- Sets application properties
- Build consumer
- Superclass method
- Set multi datasource
- Main method for testing
- Get md5 hash of string
- Utility function
- Restart a new project
- Download the file list and return the result
- Slave 1
- Define Druid datasource
- Define the protocol
- The javaMail sender
- Slave 2
- Generate id by id
- Read top lines
- Download file
- Update config
- Upload file to FTP server
- Download file from FTP
springboot-zookeeper-config Key Features
springboot-zookeeper-config Examples and Code Snippets
Community Discussions
Trending Discussions on Application Framework
QUESTION
I am trying to understand various available AGL specific options that we can give in config.xml and I am referring to the link below
https://docs.automotivelinux.org/docs/en/halibut/apis_services/reference/af-main/2.2-config.xml.html
This is the sample config.xml file
...ANSWER
Answered 2020-Mar-06 at 09:48I figured out why we need this
required-api: param name="#target"
OPTIONAL(not compulsory)
It declares the name of the unit(in question it is main) requiring the listed apis. Only one instance of the param “#target” is allowed. When there is not instance of this param, it behave as if the target main was specified.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install springboot-zookeeper-config
You can use springboot-zookeeper-config like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the springboot-zookeeper-config component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page