𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

program code for Hands-On Microservices with Rust : Build, Test, and Deploy Scalable and Reactive Microservices with Rust 2018

✍ Scribed by Kolodin, Denis


Publisher
Packt Publishing Ltd
Year
2019
Tongue
English
Leaves
511
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Microservice architecture is sweeping the world as the de facto pattern to build web-based applications. This book describes web development using the Rust programming language and will get you up and running with modern web frameworks and. Finally, you will be taken through examples of how to test and debug microservices and pack them into a ...

✦ Table of Contents


Cover
Title Page
Copyright and Credits
About Packt
Contributors
Table of Contents
Preface
Chapter 1: Introduction to Microservices
Technical requirements
What are microservices?
Why we need microservices
How to deploy a microservice
Docker
Continuous Integration
How to split a traditional server into multiple microservices
Reasons to avoid monoliths
Impossible to scale vertically
Impossible to update and deploy only one feature
The failure of one server affects all features
Breaking a monolithic service into pieces
Definition of a REST API
User registration microservice E-mail notifications microserviceProduct catalogΒ  microservice
Shopping cart microservice
Payment Integration microservice
Statistics collecting microservice
Transformation to microservices
Reusing existing microservices
Why Rust is a great tool for creating microservices
Explicit versus implicit
Minimal amount of runtime errors
Great performance
Minimal dependencies burden
Summary
Further reading
Chapter 2: Developing a Microservice with the Hyper Crate
Technical requirements
Binding a Tiny Server
Adding necessary dependencies
The main function of the server Address of the serverServer instances
Setting the requests handler
Adding the server instance to a runtime
Building and running
Rebuilding on changes
Handling incoming requests
Adding a service function
Implementing a service function
Index pages
Implementing the REST principles
Adding a shared state
Accessing a shared state from a service function
Parsing paths in a microservice
Implementing REST methods
Extracting the user's identifier
Getting access to the shared data
REST methods
POSTΒ - Creating data
GETΒ - Reading data
PUTΒ - Updating data
DELETEΒ - Deleting data Routing advanced requestsDefining paths with regular expressions
Adding the necessary dependencies
Writing regular expressions
Path for index page
Path for user management
Β Path for the users list
Matching expressions
Summary
Chapter 3: Logging and Configuring Microservice
Technical requirements
Adding logging to a microservice
Random-value-generating microservices
The log crate
Loggers
Log levels
Logging messages
Custom level of messages
Checking logging is enabled
Own target
Using logging
Configuring a logger with variables
RUST_LOG
RUST_LOG_STYLE Changing the RUST_LOG variable to your ownReading environment variables
Standard library
Using the .env file
Using theΒ dotenv crate
Adding variables to the .env file
Parsing command-line arguments
Using the clap crate
Adding dependencies
Building a parser
Reading arguments
Usage
How to add subcommands
Reading the configuration from file
Adding the TOML config
Adding dependencies
Declaring a struct for configuration
Reading the configuration file
Joining all values by a priority
Creating and using the configuration file
Summary


πŸ“œ SIMILAR VOLUMES


Hands-On Microservices with Rust : Build
✍ Kolodin, Denis πŸ“‚ Library πŸ“… 2019 πŸ› Packt Publishing Ltd 🌐 English

Microservice architecture is sweeping the world as the de facto pattern to build web-based applications. This book describes web development using the Rust programming language and will get you up and running with modern web frameworks and. Finally, you will be taken through examples of how to tes

Hands-On Reactive Programming with React
✍ Rahul Sharma πŸ“‚ Library πŸ“… 2018 πŸ› Packt Publishing 🌐 English

<p><b>Discover how project Reactor enhances the reactive programming paradigm and allows you to build scalable asynchronous applications</b></p> Key Features <li>Use reactive APIs, Flux, and Mono to implement reactive extensions </li> <li>Create concurrent applications without the complexity of Java

Hands-On Microservices With Kubernetes:
✍ Gigi Sayfan πŸ“‚ Library πŸ“… 2019 πŸ› Packt Publishing 🌐 English

Kubernetes is an open source container management and orchestration platform. It has been giving a decent competition to spring cloud environment, claiming to be the best environment for developing and running Microservices. Hands-on Microservices with Kubernetes will help you successfully create or

Hands-On Microservices With Kubernetes:
✍ Gigi Sayfan πŸ“‚ Library πŸ“… 2019 πŸ› Packt Publishing 🌐 English

Kubernetes is an open source container management and orchestration platform. It has been giving a decent competition to spring cloud environment, claiming to be the best environment for developing and running Microservices. Hands-on Microservices with Kubernetes will help you successfully create or

Scala Reactive Programming: Build scalab
✍ Posa, Rambabu πŸ“‚ Library πŸ“… 2018 πŸ› Packt Publishing 🌐 English

Reactive programming is a better, scalable, and faster way to build applications, and one that helps us write code that is concise, clear, and readable. It can be used for many purposes such as GUIs, robotics, music, and more, and is central to many concurrent systems. This book will be your guide t