Building simple Node.js microservices using Hapi and Redis - Nodevember 2015
You may have heard the term microservice, but what does it actually imply? What are the benefits and risks of a microservice style architecture? How can you manage the risks and successfully use microservices to bring you more flexibility, resilience, and scalability?
How can you use Node.js, Hapi, and Redis to leverage microservice style architecture?
These resources accompany my talk at Nodevember entitled “Building simple Node.js microservices with Hapi and Redis”. In this talk I showcase a few ways you can create and use microservices with Node.js using Hapi for REST style microservices and Redis for queued microservices. I’ll explain some of the practical advantages this approach provides.
Meta Information
- Author: Jeff Barczewski
- Published: November 14th, 2015
- Tags: nodejs, microservices,enterprise,resilience,redis,hapi,high,availability,durability,scalability
- Updated: January 4th, 2016
HD Video
Watch HD video on YouTube (Use HD setting for best clarity)
Slides
Code
- github.com/jeffbski/microservices - Example code discussed in the presentation
- microservice using redis queue
- microservice using redis reliable queue
- microservice using redis pregenerated cache queue
- hapi microservice
- hapi API gateway - proxying and aggregating microservices
Links
Articles
- Microservices article by James Lewis and Martin Fowler
- Microservice Resource Guide - Martin Fowler
- Building Microservices - Designing Fine-grained Systems - Sam Newman - O’Reilly
- How we ended up with microservices - Phil Calçado
- An Introduction to Microservices, Part 1
- Building Microservices: Using an API Gateway - Chris Richardson
- Introduction to Microservices - Chris Richardson
- From Microservices to Artificial Intelligence Operating System - Lukasz Guminski
- Monolithic vs Microservices Architecture - Anton Kharenko
Videos
- Managing Containers at Scale with CoreOS and Kubernetes by Kelsey Hightower - Strange Loop 2015
- Apache Kafka and the Next 700 Stream Processing Systems by Jay Kreps - Strange Loop 2015
- Hopelessness and Confidence in Distributed Systems Design by Camille Fournier - Strange Loop 2015
- Architectural Patterns of Resilient Distributed Systems by Ines Sombra - Strange Loop 2015
- microxchg - Microservices Conference - Berlin 2015 - Conference videos in English and German
- Pros, Cons of Microservices Architectures - Sudhir Tonse - AWS re:Invent 2014
Modules / Tools
- Redis - flexible performant in-memory data structure store with customizable persistence
- hapi - HTTP API from Walmart Labs
- h2o2 - Proxy handler for hapi
- ioredis - robust, performance focused and full featured Redis client for Node.js and IO.js
- once - function wrapper to ensure only one call
- wreck - HTTP client from Walmart Labs - solid http client