yuaotian
V2EX  ›  Java

Java springboot 有哪些单体项目的动态配置框架?轻量级别那种,最好是内嵌在内部中,单体版本的 Apollo 配置中心吧

  •  
  •   yuaotian · Aug 1, 2024 · 4306 views
    This topic created in 684 days ago, the information mentioned may be changed or developed.

    如题~

    9 replies    2024-08-08 09:55:47 +08:00
    Super8
        1
    Super8  
       Aug 1, 2024   ❤️ 1
    如果单体工程不大,业务不复杂就不用配置中心了,我喜欢直接用 yml 管理
    chendy
        2
    chendy  
       Aug 1, 2024
    看你要动态配置的东西是啥,开关数值之类的,随便放个配置文件,定时读或者监听文件变化就行了
    涉及到容器的,讲真也不方便做动态配置
    iRiddle
        3
    iRiddle  
       Aug 1, 2024   ❤️ 1
    你可以用 archaius 动态读取配置文件,想改的话随时改配置文件就可以了。
    potatowish
        4
    potatowish  
       Aug 1, 2024 via iPhone
    我直接把配置放到数据库表,然后接收 binlog 消息,然后异步刷新到一个 map 对象
    k9990009
        5
    k9990009  
       Aug 2, 2024 via Android   ❤️ 1
    之前有在 B 站上,看到有人推广,你看看

    Smart-Config 智能配置:单体应用下的动态配置;单机版 Apollo
    非常适合中小型项目快速上线,以及配置中心功能

    github: https://github.com/yangfeng20/smart-config
    gitee: https://gitee.com/yangfeng20/smart-config

    架构图地址:
    https://www.processon.com/view/link/664555bdbb80b533c30b670a
    keenkiller
        6
    keenkiller  
       Aug 2, 2024
    nacos 凑合用呗
    itechify
        7
    itechify  
    PRO
       Aug 2, 2024
    rnacos ,rust 重写的 nacos ,启动占用极低,在开发,测试环境使用非常适合
    i4color
        8
    i4color  
       Aug 8, 2024
    @oneisall8955 这个可以。
    itechify
        9
    itechify  
    PRO
       Aug 8, 2024
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2726 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 15:40 · PVG 23:40 · LAX 08:40 · JFK 11:40
    ♥ Do have faith in what you're doing.