microdose

microdose is a micro-service optimized Node framework written in TypeScript. It is suitable for use when building a robust API specifically in a micro-service environment. You can think of it as microdosing for the servers.

Playground

$ git clone git@github.com:borislemke/microdose.git
$ cd microdose
$ npm i
$ npm start

Installation

$ npm i microdose

Syntax

import {
    MicroRouter,
    MicroMethod,
    MicroRequest,
    MicroResponse,
    MicroBootstrap
} from 'microdose'


@MicroRouter()
class MyServer {

    @MicroMethod.Get()
    sayHello(req: MicroRequest, res: MicroResponse): void {
        res.send('Hello world')
    }
}

MicroBootstrap(MyServer, 3000)

Future

  • Service Discovery Optimization (we'll start with consul)
  • Minimal Redis ORM and built-in caching mechanism for request (request caching, cache expiry, cache invalidation etc.)

results matching ""

    No results matching ""