GitHub repository: liushibao/my-server-framework
Primary language: TypeScript
Created: 2020-07-17T22:37:08Z
Description: a light weight nodejs express framework, including dependency injection using inversifyjs, a thin wrapper over pg lib as a light ORM. This framework (try to) adopts CQRS design principle, uses Kafka as the command logger, so dose provide a commander class and an executor class respectively. Api servers use the commander class to log command to Kafka, and return immediately, then, in a separate time, executor servers use the executor class to do some thing with the commands, either update database or cache, or anything else, like call other apis.