چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

Building Microservices with ASP.NET Core : develop, test, and deploy cross-platform services in the cloud

Kevin Hoffman

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

نویسنده
Kevin Hoffman
سال انتشار
۲۰۱۷
فرمت
PDF
زبان
انگلیسی
حجم فایل
۴٫۱ مگابایت
شابک
9781491961704، 9781491961735، 1491961708، 1491961732

دربارهٔ کتاب

Pick up best patterns and practices for building microservices with ASP.NET Core-the new, improved, cross-platform re-incarnation of ASP.NET. With this practical guide, you'll not only learn how to integrate many factors of cloud native application development into your own projects, you'll also learn to embrace "the way of the cloud", a set of disciplines for building cloud native software. Authors Kevin Hoffman and Chris Umbel emphasize test-first development and continuous delivery above all else for building services and applications. You'll learn how to use tools such as GitHub, Wercker, and Docker to continuously build, test, and deliver your application to local and cloud environments, including Pivotal Cloud Foundry. Once you've gotten your feet wet creating services that coexist in a microservices ecosystem, you'll learn how to take advantage of some Netflix OSS servers, including the configuration server, service registry, and circuit breakers. Pick up best patterns and practices for building microservices with ASP.NET Core--the new, improved, cross-platform reincarnation of ASP.NET. With this practical guide, you’ll not only learn how to integrate many factors of cloud native application development into your own projects, you’ll also learn disciplines and strategies for building horizontally scalable services. Preface 5 What You’ll Build 5 Why You’re Building Services 6 What You’ll Need to Build Services 6 Online Resources 7 Conventions Used in This Book 7 Using Code Examples 8 O’Reilly Safari 8 How to Contact Us 8 Acknowledgments 9 1. ASP.NET Core Primer 10 Distilling the Core 10 CoreCLR 10 CoreFX 11 .NET Platform Standard 12 ASP.NET Core 13 Installing .NET Core 13 Building a Console App 15 Building Your First ASP.NET Core App 18 Adding ASP.NET Packages to the Project 18 Adding the Kestrel Server 19 Adding a Startup Class and Middleware 20 Running the App 21 Summary 22 2. Delivering Continuously 23 Introducing Docker 23 Installing Docker 24 Running Docker Images 24 Continuous Integration with Wercker 26 Building Services with Wercker 26 Installing the Wercker CLI 27 Adding the wercker.yml Configuration File 28 Running a Wercker Build 30 Continuous Integration with CircleCI 31 Deploying to Docker Hub 32 Summary 33 3. Building a Microservice with ASP.NET Core 35 Microservices Defined 35 Introducing the Team Service 36 API First Development 37 Why API First? 37 The Team Service API 38 Test-First Controller Development 39 Injecting a Mock Repository 46 Completing the Unit Test Suite 49 Creating a CI Pipeline 50 Integration Testing 52 Running the Team Service Docker Image 54 Summary 56 4. Backing Services 57 Microservice Ecosystems 57 Bound Resources 59 Strategies for Sharing Models Between Services 60 Building the Location Service 62 Enhancing the Team Service 66 Configuring Service URLs with Environment Variables 66 Consuming a RESTful Service 67 Running the Services 69 Summary 72 5. Creating a Data Service 73 Choosing a Data Store 73 Building a Postgres Repository 74 Creating a Database Context 75 Implementing the Location Record Repository Interface 76 Testing with the Entity Framework Core In-Memory Provider 78 Databases Are Backing Services 78 Configuring a Postgres Database Context 79 Integration Testing Real Repositories 81 Exercising the Data Service 83 Summary 87 6. Event Sourcing and CQRS 88 Introducing Event Sourcing 88 Reality Is Event Sourced 89 Event Sourcing Defined 89 Learning to Love Eventual Consistency 91 The CQRS Pattern 92 Event Sourcing and CQRS in Action—Team Proximity Sample 93 The Location Reporter Service 95 The Event Processor 104 The Reality Service 110 The Proximity Monitor 111 Running the Samples 112 Starting the Services 113 Submitting Sample Data 114 Summary 116 7. Building an ASP.NET Core Web Application 117 ASP.NET Core Basics 117 Adding ASP.NET MVC Middleware 120 Adding a Controller 121 Adding a Model 122 Adding a View 122 Invoking REST APIs from JavaScript 125 Building Cloud-Native Web Applications 128 API First 129 Configuration 129 Logging 130 Session State 130 Data Protection 131 Backing Services 131 Environment Parity 132 Port Binding 132 Telemetry 133 Authentication and Authorization 133 Summary 134 8. Service Discovery 135 Refresher on Cloud-Native Factors 135 External Configuration 135 Backing Services 136 Introducing Netflix Eureka 137 Discovering and Advertising ASP.NET Core Services 139 Registering a Service 140 Discovering and Consuming Services 141 DNS and Platform Supported Discovery 145 Summary 145 9. Configuring Microservice Ecosystems 146 Using Environment Variables with Docker 147 Using Spring Cloud Config Server 148 Configuring Microservices with etcd 151 Creating an etcd Configuration Provider 153 Summary 158 10. Securing Applications and Microservices 159 Security in the Cloud 159 Intranet Applications 159 Cookie and Forms Authentication 160 Encryption for Apps in the Cloud 161 Bearer Tokens 161 Securing ASP.NET Core Web Apps 162 OpenID Connect Primer 162 Securing an ASP.NET Core App with OIDC 164 OIDC Middleware and Cloud Native 172 Securing ASP.NET Core Microservices 174 Securing a Service with the Full OIDC Security Flow 174 Securing a Service with Client Credentials 175 Securing a Service with Bearer Tokens 176 Summary 179 11. Building Real-Time Apps and Services 181 Real-Time Applications Defined 181 Websockets in the Cloud 182 The WebSocket Protocol 183 Deployment Models 183 Using a Cloud Messaging Provider 184 Building the Proximity Monitor 185 Creating a Proximity Monitor Service 186 Creating a Real-Time Proximity Monitor UI 196 Summary 198 12. Putting It All Together 199 Identifying and Fixing Anti-Patterns 199 Cleaning Up the Team Monitor Sample 199 Continuing the Debate over Composite Microservices 202 Mitigating Risk with Circuit Breakers 204 Eliminating the Synchronous Composite Pattern 207 What Next? 207 Index 209 2017 With this practical guide, you'll not only learn how to integrate many factors of cloud native application development into your own projects, you'll also learn to embrace "the way of the cloud", a set of disciplines for building cloud native software. At a time when nearly every vertical, regardless of domain, seems to need software running in the cloud to make money, microservices provide the agility and drastically reduced time to market you require. This hands-on guide shows you how to create, test, compile, and deploy microservices, using the ASP.NET Core free and open-source framework. Along the way, youll pick up good, practical habits for building powerful and robust services.Building microservices isnt about learning a specific framework or programming language; its about building applications that thrive in elastically scaling environments that don't have host affinity, and that can start and stop at a moments notice. This practical book guides you through the process.Learn test-driven and API-first development concepts Communicate with other services by creating and consuming backing services such as databases and queues Build a microservice that depends on an external data source Learn about event sourcing, the event-centric approach to persistence Use ASP.NET Core to build web applications designed to thrive in the cloud Build a service that consumes, or is consumed by, other services Create services and applications that accept external configuration Explore ways to secure ASP.NET Core microservices and applications At a time when nearly every vertical, regardless of domain, seems to need software running in the cloud to make money, microservices provide the agility and drastically reduced time to market you require. This hands-on guide shows you how to create, test, compile, and deploy microservices, using the ASP.NET Core free and open-source framework. Along the way, you'll pick up good, practical habits for building powerful and robust services. Building microservices isn't about learning a specific framework or programming language; it's about building applications that thrive in elastically scaling environments that don't have host affinity, and that can start and stop at a moment's notice. This practical book guides you through the process. Learn test-driven and API-first development concepts Communicate with other services by creating and consuming backing services such as databases and queues Build a microservice that depends on an external data source Learn about event sourcing, the event-centric approach to persistence Use ASP.NET Core to build web applications designed to thrive in the cloud Build a service that consumes, or is consumed by, other services Create services and applications that accept external configuration Explore ways to secure ASP.NET Core microservices and applications Chapter 7. Building an ASP.NET Core Web Application; ASP.NET Core Basics; Adding ASP.NET MVC Middleware; Adding a Controller; Adding a Model; Adding a View; Invoking REST APIs from JavaScript; Building Cloud-Native Web Applications; API First; Configuration; Logging; Session State; Data Protection; Backing Services; Environment Parity; Port Binding; Telemetry; Authentication and Authorization; Summary; Chapter 8. Service Discovery; Refresher on Cloud-Native Factors; External Configuration; Backing Services; Introducing Netflix Eureka; Discovering and Advertising ASP.NET Core Services

قیمت نهایی

۴۴٬۰۰۰ تومان