Giter Site home page Giter Site logo

microservices's Introduction

Microservices Examples

Examples of building simple microservices using Node.js, Redis, and Hapi

Talks referencing these examples

Installation

Enter the directory of the example and npm install

redis-queue

An example of using a redis list as a queue for a microservice mail server. Microservice mail delivery processes can be spun up to listen to the queue and wait for work.

Another version done using a reliable queue where an additional list is used to track messages in transit. If a processes fails to deliver with in a specified amount of time, an item could be moved back to the original queue for delivery.

redis-cache

An example of using microservice(s) to prepopulate a redis list cache. An expensive computation like determining the next ads to display across campaigns could be done in advance by microservice workers and the results put into a cache queue for use. The microservice(s) can monitor the queue height and generate more when the count drops to a certain level.

hapi-api-gateway

Examples using hapi to build simple microservices and using hapi to build simple API proxies or smart API gateways. An API gateway can aggregate data from to many microservices into one call.

Hapi plugins are a nice mechanism for moving microservice funtionality between servers. By splitting off groups of functionality into plugins they can be used in a monolith application or easily moved into their own containers and servers.

microservices's People

Contributors

jeffbski avatar

Watchers

James Cloos avatar Jonny Dungeons avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.