Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Advanced Serverless Architectures with Microsoft Azure [Instructor Edition]
  • Table Of Contents Toc
Advanced Serverless Architectures with Microsoft Azure [Instructor Edition]

Advanced Serverless Architectures with Microsoft Azure [Instructor Edition]

By : Daniel Bass
close
close
Advanced Serverless Architectures with Microsoft Azure [Instructor Edition]

Advanced Serverless Architectures with Microsoft Azure [Instructor Edition]

By: Daniel Bass

Overview of this book

Advanced Serverless Architectures with Microsoft Azure redefines your experience of designing serverless systems. It shows you how to tackle challenges of varying levels, not just the straightforward ones. You'll be learning how to deliver features quickly by building systems, which retain the scalability and benefits of serverless. You'll begin your journey by learning how to build a simple, completely serverless application. Then, you'll build a highly scalable solution using a queue, load messages onto the queue, and read them asynchronously. To boost your knowledge further, the course also features durable functions and ways to use them to solve errors in a complex system. You'll then learn about security by building a security solution from serverless components. Next, you’ll gain an understanding of observability and ways to leverage application insights to bring you performance benefits. As you approach the concluding chapters, you’ll explore chaos engineering and the benefits of resilience, by actively switching off a few of the functions within a complex system, submitting a request, and observing the resulting behavior. By the end of this course, you will have developed the skills you need to build and maintain increasingly complex systems that match evolving platform requirements.
Table of Contents (8 chapters)
close
close

Chapter 2: Microservices and Serverless Scaling Patterns


Activity 2: Implementing Asynchronous Microblog Submission and Caching

  1. Create a new C# Azure Functions project inside a folder called MicroBlogPostFunctions and create a model called MicroBlogPost that accepts a post with a username (email address), title, and content:

    Figure 2.50: MicroBlogPost class

  2. Create a HTTP-triggered function named PostMicroBlogPost that submits these posts to an Azure Storage Queue named MicroBlogPosts:

    Figure 2.51: Function that saves MicroBlogPosts to a queue

  3. Create a function named DequeMicroBlogPosts that takes the posts from the queue and inserts them into a Cosmos DB named MicroBlogSite:

    Figure 2.52: Function that dequeues objects and saves them into a Cosmos DB

  4. Create a function called GetMicroBlogPosts that retrieves posts from the Cosmos DB in a list and uses the expires header to instruct end users to cache the response:

    Figure 2.53: Function that retrieves all MicroBlogPosts and instructs clients to cache them

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Advanced Serverless Architectures with Microsoft Azure [Instructor Edition]
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon