Hands-On Microservices with C#
图书信息
| 作者 | Matt R. Cole |
| 出版社 | Packt Publishing |
| ISBN | 9781789533767 |
| 出版时间 | 2018-06-29 |
| 字数 | 24.9万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
Build enterprise-grade microservice ecosystems with intensive case studies using C# About This Book ? Learn to build message-based microservices ? Packed with case studies to explain the intricacies of large-scale microservices ? Build scalable, modular, and robust architectures with C# Who This Book Is For C# developers, software architects, and professionals who want to master the art of designing the microservice architecture that is scalable based on environment. Developers should have a basic understanding of.NET application development using C# and Visual Studio What You Will Learn ? Explore different open source tools within the context of designing microservices ? Learn to provide insulation to exception-prone function calls ? Build common messages used between microservices for communication ? Learn to create a microservice using our base class and interface ? Design a quantitative financial machine microservice ? Learn to design a microservice that is capable of using Blockchain technology In Detail C# is a powerful language when it comes to building applications and software architecture using rich libraries and tools such as .NET. This book will harness the strength of C# in developing microservices architectures and applications. This book shows developers how to develop an enterprise-grade, event-driven, asynchronous, message-based microservice framework using C#, .NET, and various open source tools. We will discuss how to send and receive messages, how to design many types of microservice that are truly usable in a corporate environment. We will also dissect each case and explain the code, best practices, pros and cons, and more. Through our journey, we will use many open source tools, and create file monitors, a machine learning microservice, a quantitative financial microservice that can handle bonds and credit default swaps, a deployment microservice to show you how to better manage your deployments, and memory, health status, and other microservices. By the end of this book, you will have a complete microservice ecosystem you can place into production or customize in no time. Style and approach A step-by-step guide that enables readers to create a complete microservice ecosystem they can place into production or customize in no time.
目录
Title Page
Copyright and Credits
Hands-On Microservices with C#
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Let's Talk Microservices, Messages, and Tools
What is a microservice?
Service-Oriented Architecture
Microservice architecture
Pros and cons
Pros
Cons
Case study
Messaging concepts
Message queues
Producer consumer queue
Creating common messages
Message subscriptions
The subscription ID that you pass to subscribe is important
Considerations when writing the subscribe callback delegate
Using SubscribeAsync
Canceling subscriptions
Versioning messages
How does message versioning work?
Message versioning guidance
Message publishing
Message flow
Exchanges
Direct exchange
Default exchange
Topic exchange
Fanout exchange
Headers exchange
Common messages
Summary
ReflectInsight – Microservice Logging Redefined
Router
Log Viewer
Live Viewer
Message navigation
Message properties
Watches
Bookmarks
Call Stack
Advanced Search
Quick Search
Advanced Search
Time zone formatting
Auto Save/Purge
Auto Save
Auto Purge
Configuration Editor
Overview
XML configuration
Dynamic configuration
Configuration Editor
Summary
Exercises
Creating a Base Microservice and Interface
Classes versus interfaces
Creating our base project
Creating a base interface
Creating our base microservice class
Variables
Base microservice constructor
Implementing our interface
Publishing a memory update message
Minimal microservice
Summary
Designing a Memory Management Microservice
Creating our microservice
Our code
Reclaiming memory
Dynamically creating an exchange
Dynamically creating a queue
Publishing a message
Summary
Exercises
Designing a Deployment Monitor Microservice
Deployment issues
Installation
Our messages
Deployment start message
Deployment stop message
Our program
Subscribing to messages
Processing messages
Publishing health status messages
Summary
Exercises
Designing a Scheduling Microservice
Installation
Installing Quartz.NET
What is Quartz.NET?
Runtime environments
Job scheduling
Job execution
Job persistence
Clustering
Listeners and plugins
Installing Quartz.NET server as a service
Our program
OnStart
Scheduling multiple jobs
Running our microservice
Summary
Exercises
Designing an Email Microservice
Installation
Our program
OnStart
Subscribing to messages
Processing messages
Finding DNS servers
Subscribing to email requests
Summary
Exercises
Designing a File Monitoring Microservice
Overview of FileSystemWatcher
Internal buffer
Building your microservice – part one
Making sure our message queue and exchange are created
Running the recovery filewatcher
Building your microservice – part two
Our message
Building our main program
Notes on events
Summary
Exercises
Creating a Machine Learning Microservice
Installation
Our program
OnStart
Processing a machine learning request
Creating a layer
Creating a network
Traversing the forward path through the network
Training the network
Getting results
Summary
Creating a Quantitative Financial Microservice
Installation
Our messages
CDS-request message
Bonds request message
Subscribing to messages
Publishing our request message
Publishing our CDS response
Calculating a CDS
Getting bond information
Processing a bond request
Processing a bond response
Summary
Exercises
Trello Microservice – Board Status Updating
Installation
Creating boards, lists, and cards
Summary
Exercises
Microservice Manager – The Nexus
Installation
Our code
Leader election
Subscribing to all messages
Processing bond response messages
Processing deployment messages
Processing CDS messages
Processing memory messages
Processing health status messages
Processing machine learning messages
Processing filesystem messages
Summary
Exercises
Creating a Blockchain Bitcoin Microservice
Blockchain
Bitcoin
Digital signatures
The circle of encryption
Installation
Our main program
Leader election
Creating our digital wallet
Your public address
How do we spend money?
Our code
Processing BitcoinSpendReceipt
Summary
Exercises
Adding Speech and Search to Your Microservice
Text-to-Speech
Installation
Our program
Our messages
Subscribing to messages
Processing speech request messages
Processing Wikipedia search messages
Using Text-to-Speech
Summary
Best Practices
Microservices
Messaging
Scheduling jobs
Recommended reading
- 特征工程入门与实践((土)锡南·厄兹代米尔)
- 北大国学课(文章)
- 大白鲸童话森林·樟树公寓的十二家房客(梅瑜)
- 足够遥远(张尺)
- 热处理工程师理论基础(刘宗昌)
- 文治帝国:大宋300年的世运与人物【畅销书《一看就停不下来的中国史》作者重磅新书!】(艾公子)
- 葛冰动物童话·飞熊“佐罗”(葛冰)
- Wasps - Evil events from evil causes spring(Aristophanes .)
