springboot-zookeeper-config | springboot framwork integrated dubbo redis kafka | Application Framework library

 by   tigerst Java Version: Current License: No License

kandi X-RAY | springboot-zookeeper-config Summary

kandi X-RAY | springboot-zookeeper-config Summary

springboot-zookeeper-config is a Java library typically used in Server, Application Framework applications. springboot-zookeeper-config has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

#项目功能 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

            kandi-support Support

              springboot-zookeeper-config has a low active ecosystem.
              It has 1 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              springboot-zookeeper-config has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of springboot-zookeeper-config is current.

            kandi-Quality Quality

              springboot-zookeeper-config has no bugs reported.

            kandi-Security Security

              springboot-zookeeper-config has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              springboot-zookeeper-config does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              springboot-zookeeper-config releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed springboot-zookeeper-config and discovered the below as its top functions. This is intended to give you an instant insight into springboot-zookeeper-config implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            springboot-zookeeper-config Key Features

            No Key Features are available at this moment for springboot-zookeeper-config.

            springboot-zookeeper-config Examples and Code Snippets

            No Code Snippets are available at this moment for springboot-zookeeper-config.

            Community Discussions

            QUESTION

            What is meant by required-api: param name=”#target” in config.xml file of AGL widgets?
            Asked 2020-Mar-06 at 09:53

            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:48

            I 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.

            Source https://stackoverflow.com/questions/60561230

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install springboot-zookeeper-config

            You can download it from GitHub.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tigerst/springboot-zookeeper-config.git

          • CLI

            gh repo clone tigerst/springboot-zookeeper-config

          • sshUrl

            git@github.com:tigerst/springboot-zookeeper-config.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link