Skip to content

li-daqian/aq-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aq-config

This is a simple configuration center, basically no libraries are used, it's just for learning.

library self build list

  • JSON
  • JDBC connection pool
  • HTTP server

How to use

Use IDE to run for now.

  • Run the mysql script in mysql.sql
  • Start server Bootstrap
  • Add (namespace, appName, key) = value
curl --location --request PUT 'http://127.0.0.1:17060/config' \
--header 'Content-Type: application/json' \
--data-raw '{
    "namespace": "namespace",
    "appName": "appName",
    "key": "key",
    "value": "value"
}'
2022-07-03 12:00:30.417  INFO 13912 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-07-03 12:00:30.417  INFO 13912 --- [           main] c.g.a.config.example.ExampleApplication  : Started ExampleApplication in 1.486 seconds (JVM running for 1.757)
get(namespace, appName, key) = value

Benchmark

local machine:

Benchmark                   Mode  Cnt   Score   Error   Units
ConfigClientBenchmark.get  thrpt   10  12.140 ± 0.448  ops/ms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages