Book Image

Mastering Cloud Development using Microsoft Azure

Book Image

Mastering Cloud Development using Microsoft Azure

Overview of this book

Microsoft Azure is a cloud computing platform that supports many different programming languages, tools, and frameworks, including both Microsoft-specific and third-party software and systems. This book starts by helping you set up a professional development environments in the cloud and integrating them with your local environment to achieve improved efficiency. You will move on to create front-end and back-end services, and then build cross-platform applications using Azure. Next you’ll get to grips with advanced techniques used to analyze usage data and automate billing operations. Following on from that, you will gain knowledge of how you can extend your on-premise solution to the cloud and move data in a pipeline. In a nutshell, this book will show you how to build high-quality, end-to-end services using Microsoft Azure. By the end of this book, you will have the skillset needed to successfully set up, develop, and manage a full-stack Azure infrastructure.
Table of Contents (15 chapters)
Mastering Cloud Development using Microsoft Azure
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Dealing the past with events


When we implement code handling the command message, we may contextually make some mistakes, such as:

  • Executing some other operation on another entity, for example, because it needs to change consistently with the first operation

  • Tracing the fact that the operation has been executed in a log file

Forget testing how command execution is performing in terms of speed and resource usage. Each of these mistakes has some effect on how we handle the entire project.

The first mistake is a matter of responsibility. For example, when we add an item to the basket we need to change the product availability into the store (that is, another entity). Is it correct that the same code that updates the basket updates the store? No: basket and store are two entities (or better, aggregates in DDD terms) that have two different lifetimes and responsibilities, so they need to be well separated into different places. The store should be informed that a basket has changed and it must change...