ko

dapp skeleton based on go-kit

Stars
74
Committers
1

ko

dapp skeleton based on go-kit

run

make

test

curl -XPOST -d'{"param":{"orderId":"123"}}' http://localhost:4001/svc/order/v1/order
{"code":0,"msg":"ok","data":{"order":"123"}}

curl http://localhost:4001/svc/ucenter/v1/user/122552323
{"code":0,"msg":"ok","data":{"user":"122552323"}}

architecture

traditional linus server architecture

docker k8s architecture

...

todo

  • gateway
    • rate limit
    • logging
      • access.log / error.log
    • instrumentation
    • auth
      • jwt
      • cookie
    • load balance
    • error handle
  • svc
    • connections
      • mysql
      • redis
    • logging
    • orm
    • mq
  • code-generator-cmd-tool
  • graceful restart/project hot update
  • docker env