وبلاگ بلیان

Introducing Microsoft Orleans : Implementing Cloud-Native Services with a Virtual Actor Framework

معرفی کتاب «Introducing Microsoft Orleans : Implementing Cloud-Native Services with a Virtual Actor Framework» نوشتهٔ Thomas Nelson، منتشرشده توسط نشر Apress Apress در سال 2022. این کتاب در 8 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «Introducing Microsoft Orleans : Implementing Cloud-Native Services with a Virtual Actor Framework» در دستهٔ بدون دسته‌بندی قرار دارد.

Welcome to Orleans, a virtual actor framework from Microsoft that allows a single developer to create immensely scalable, available applications while maintaining a high throughput. This guide is designed to give you a foundational understanding of Orleans, an overview of its implementations, and plenty of hands-on coding experience. Side-by-side monolithic and microservice patterns alongside Orleans' framework features are also discussed, to help readers without an actor model background understand how they can enhance applications.Author Nelson’s approach is to introduce patterns as needed for business requirements, including monolithic microservices and to convert monolithic to microservices, in order to keep a microservice from growing into a monolithic application. Orleans is a good choice for either of these scenarios as the next step to build your backend services and reduce unnecessary orchestration, overhead, and tooling.The Orleans framework was designed to handle tedious overhead, allowing the developer to focus on the solution. You will learn how Orleans can support billions of virtually parallel transactions while sustaining low latency and high availability. In addition, you will glimpse under the hood at Orleans to discover its useful attributes. All key learning points include hands-on coding examples to reinforce understanding.This book goes beyond what Orleans is to explain where it fits within the realm of development. You will gain an in-depth understanding to build a foundation for future growth.What You Will Learn• Understand how Orleans can benefit your monolithic and/or microservice applications• Gain a brief overview of actor models and how they relate to Orleans• Observe the design patterns and how Orleans can simplify or reduce tooling requirements• Know the pros and cons of microservices and Orleans to determine the best course of action based on the needs of an application• Discover Orleans' design patterns and practices, including life cycle, messaging guarantees, cluster management, streams, load balancing, and more• Build your first Orleans' application; build base knowledge of application structure, unit testing, dashboard, scheduled eventsThis book is for developers. A basic understanding of .NET development and an understanding of service concepts is helpful. Readers will need a connection to download Nuget packages and a code editor (Community Edition Visual Studio or VS Code).Thomas Nelson, a Lead Cloud Architect and a Microsoft Certified Azure Solutions Architect Expert, has worked in several technical fields spanning from the graphic design of websites to development and architecture. During his 10 years of backend development, his interest has gravitated towards DevSecOps and automation. He enjoys teaching others and is often found at local meetups presenting various technologies, patterns, and software examples. He is thrilled to be using Orleans and considers it one of those wonderful and valuable frameworks that should be in the tool kit of every architect and backend developer. Also, he is pleased to have graduated from monolithic and microservice systems to build cloud-native solutions, including actor model backends. He has an associate's degree in Graphic Design, bachelor's degree in Computer Information Systems, and is currently attending Harvard Extension pursuing his master's degree in Information Management Systems. Table of Contents About the Author About the Technical Reviewer Acknowledgments Introduction Chapter 1: A Primer on Microsoft Orleans and the Actor Model Origins of Orleans Origins and Use Cases of Orleans Actor Model Explained Actor Model Infused with Orleans Grain Lifecycle Single Developer Production Uses and History Summary Chapter 2: Introducing Microsoft Orleans What Can Orleans Do for Us? Cloud-Native, Elastic, Highly Available Common Use Cases for Actor Model Frameworks Microsoft Orleans Base Libraries, Community, and Included Technologies Create and Maintain an Orleans Application as a Single Developer Community and Constant Advancements Multiple Hosting Solutions Are Supported Resource Management and Expansion Failure Handling Streaming Persistence Summary Chapter 3: Lifecycles Grain Lifecycle Grain Reentrancy External Tasks and Grains Grain Services Stateless Worker Grains Grain Call Filters Silos Grain Directory Message Path Development Setup Typical Configuration Silo Configuration Cluster Silo Membership Multi-clusters Gossip Protocol Journaled Grains Eventual Consistency Heterogeneous Silos Summary Chapter 4: Enhancing Current Designs Overview General Comparison Elasticity and Availability Comparisons Business Logic Complexity Deployment Summary Chapter 5: Starting Development Overview Composition Building Our First Application Grain Interface Grain Silo Client Grain Communication Summary Chapter 6: Timers and Reminders Overview Creating a Timer Running the Timer Creating a Reminder Setting Up an Azure Table Running the Reminder Summary Chapter 7: Unit Tests Unit Test Summary Orleans Unit Testing Overview Creating Our Unit Test Grain Setting Up Our Test Cluster Running the Test(s) Adding the CallingGrain Test Run the Unit Tests Additional Testing Summary Chapter 8: The Orleans Dashboard Overview Adding the Orlean Dashboard to Our Solution Running the Dashboard Additional Options Expanding the Dashboard Summary Chapter 9: Deployment Compatible Grains Database Handling (Deployment) Cluster Management CI/CD Overview Common Deployment Scenarios Setting Up the Azure Environment Walk-Through to Create a CI/CD Pipeline Initial Setup Creating Resources with Azure CLI Provisioning Scripts Pwsh_resource_provision.ps1 Code (PowerShell) Bash_resource_provision.sh Code (Command Line) Provision Script Summary Deployment Files Dockerfile Dockerfile Code Dockerfile Summary Deployment.yaml Deployment.yaml Code Deployment.yaml File Summary Continuous Integration and Continuous Delivery Pipeline Creation Continuous-Integration.yaml Continuous-Integration.yaml Code Continuous-Integration.yaml Summary Continuous-delivery.yaml Continuous-delivery.yaml Code Continuous-delivery.yaml Summary File Structure Validation Folders and Files Added Secrets for Deployment Service Principle Name (SPN) Subscription ID Tenant ID Adding Secrets to GitHub Automated Deployment Trigger the Process View AKS Status on Azure Portal AKS Load Balancer Dashboard Deploy Additional Orleans Troubleshooting Information Summary Chapter 10: Conclusion Origins Introduction of Microsoft Orleans Lifecycles Comparisons Project Structure Timers and Reminders Unit Tests Orleans Dashboard Deployment Future Aspects References Index Welcome to Orleans, a virtual actor framework from Microsoft that allows a single developer to create immensely scalable, available applications while maintaining a high throughput. This guide is designed to give you a foundational understanding of Orleans, an overview of its implementations, and plenty of hands-on coding experience. Side-by-side monolithic and microservice patterns alongside Orleans' framework features are also discussed, to help readers without an actor model background understand how they can enhance applications. Author Nelson’s approach is to introduce patterns as needed for business requirements, including monolithic microservices and to convert monolithic to microservices, in order to keep a microservice from growing into a monolithic application. Orleans is a good choice for either of these scenarios as the next step to build your backend services and reduce unnecessary orchestration, overhead, and tooling. The Orleans framework was designed to handle tedious overhead, allowing the developer to focus on the solution. You will learn how Orleans can support billions of virtually parallel transactions while sustaining low latency and high availability. In addition, you will glimpse under the hood at Orleans to discover its useful attributes. All key learning points include hands-on coding examples to reinforce understanding. This book goes beyond what Orleans is to explain where it fits within the realm of development. You will gain an in-depth understanding to build a foundation for future growth. What You Will Learn Understand how Orleans can benefit your monolithic and/or microservice applications Gain a brief overview of actor models and how they relate to Orleans Observe the design patterns and how Orleans can simplify or reduce tooling requirements Know the pros and cons of microservices and Orleans to determine the best course of action based on the needs of an application Discover Orleans' design patterns and practices, including life cycle, messaging guarantees, cluster management, streams, load balancing, and more Build your first Orleans' application; build base knowledge of application structure, unit testing, dashboard, scheduled events Who This Book Is For This book is for developers. A basic understanding of .NET development and an understanding of service concepts is helpful. Readers will need a connection to download Nuget packages and a code editor (Community Edition Visual Studio or VS Code).
دانلود کتاب Introducing Microsoft Orleans : Implementing Cloud-Native Services with a Virtual Actor Framework