万本电子书0元读

万本电子书0元读

顶部广告

Hands-On Microservices with C#电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Matt R. Cole

出  版  社:Packt Publishing

出版时间:2018-06-29

字       数:24.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部