Cargando…

TypeScript Microservices : Build, deploy, and secure Microservices using TypeScript combined with Node.js.

Microservices has evolved as one of the most tangible solutions to make effective and scalable applications. Due to its evolution from ES5 to ES6 stack, Typescript has become one of the most de facto solutions. This book will help you leverage microservices' power to build robust architecture u...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Ghiya, Parth
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Debunking Microservices; Debunking microservices; Rise of microservices; Wide selection of languages as per demand; Easy handling of ownership; Frequent deployments; Self-sustaining development units; What are microservices?; Principles and characteristics; No monolithic modules; Dumb communication pipes; Decentralization or self-governance; Service contracts and statelessness; Lightweight; Polyglot; Good parts of microservices; Self-dependent teams; Graceful degradation of services.
  • Supports polyglot architecture and DevOpsEvent-driven architecture; Bad and challenging parts of microservices; Organization and orchestration; Platform; Testing; Service discovery; Microservice example; Key considerations while adopting microservices; Service degradation; Proper change governance; Health checks, load balancing, and efficient gateway routing; Self-curing; Cache for failover; Retry until; Microservice FAQs; Twelve-factor application of microservices; Microservices in the current world; Netflix; Walmart; Spotify; Zalando; Microservice design aspects.
  • Communication between microservicesRemote Procedure Invocation (RPI); Messaging and message bus; Protobufs; Service discovery; Service registry for service-service communication; Server-side discovery; Client-side discovery; Registration patterns
  • self-registration; Data management; Database per service; Sharing concerns; Externalized configuration; Observability; Log aggregation; Distributed tracing; Microservice design patterns; Asynchronous messaging microservice design pattern; Backend for frontends; Gateway aggregation and offloading; Proxy routing and throttling.
  • Ambassador and sidecar patternAnti-corruption microservice design pattern; Bulkhead design pattern; Circuit breaker; Strangler pattern; Summary; Chapter 2: Gearing up for the Journey; Setting up primary environment; Visual Studio Code (VS Code); PM2; NGINX; Docker; Primer to TypeScript; Understanding tsconfig.json; compilerOptions; include and exclude; extends; Understanding types; Installing types from DefinitelyTyped; Writing your own types; Using the dts-gen tool; Writing your own *.d.ts file; Debugging; Primer to Node.js; Event Loop; Understanding Event Loop.
  • Node.js clusters and multithreadingAsync/await; Retrying failed requests; Multiple requests in parallel; Streams; Writing your first Hello World microservice; Summary; Chapter 3: Exploring Reactive Programming; Introduction to reactive programming; Why should I consider adopting reactive programming?; Reactive Manifesto; Responsive systems; Resilient to errors; Elastic scalable; Message-driven; Major building blocks and concerns; Observable streams; Subscription; emit and map; Operator; Backpressure strategy; Currying functions; When to react and when not to react (orchestrate); Orchestration.