yuaotian
V2EX  ›  Java

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

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

    如题~

    9 replies  •  2024-08-08 09:55:47 +08:00
    Super8
    Super8
    Aug 1, 2024❤️1
    1
    如果单体工程不大,业务不复杂就不用配置中心了,我喜欢直接用 yml 管理
    chendy
    chendy
    Aug 1, 2024
    2
    看你要动态配置的东西是啥,开关数值之类的,随便放个配置文件,定时读或者监听文件变化就行了
    涉及到容器的,讲真也不方便做动态配置
    iRiddle
    iRiddle
    Aug 1, 2024❤️1
    3
    你可以用 archaius 动态读取配置文件,想改的话随时改配置文件就可以了。
    potatowish
    potatowish
    Aug 1, 2024 via iPhone
    4
    我直接把配置放到数据库表,然后接收 binlog 消息,然后异步刷新到一个 map 对象
    k9990009
    k9990009
    Aug 2, 2024 via Android❤️1
    5
    之前有在 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
    keenkiller
    Aug 2, 2024
    6
    nacos 凑合用呗
    itechify
    itechify
    Aug 2, 2024
    7
    rnacos ,rust 重写的 nacos ,启动占用极低,在开发,测试环境使用非常适合
    i4color
    i4color
    Aug 8, 2024
    8
    @oneisall8955 这个可以。
    itechify
    itechify
    Aug 8, 2024
    9
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2486 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 11:33 · PVG 19:33 · LAX 03:33 · JFK 06:33
    ♥ Do have faith in what you're doing.