concept video in category cloud

This is an excerpt from Manning's book Serverless Architectures on AWS, Second Edition.
The web application example we just went through is probably the simplest example of what you can achieve with serverless architectures. A serverless approach can work exceptionally well for companies that want to innovate and move quickly. Functions and serverless architectures in general are extremely versatile. You can use them to build back ends for CRUD applications, e-commerce, back-office systems, complex web apps, and all kinds of mobile and desktop software. Tasks that used to take weeks can be done in days or hours as long as the right combination of technologies is chosen. Lambda functions are stateless and scalable, which makes them perfect for implementing any logic that benefit from parallel processing. The most flexible and powerful serverless designs are event-driven, which means each component in the architecture reacts to a state change or notification of some kind, rather than responding to a request or polling for information. In chapter 3, for example, you’ll build an event-driven, push-based pipeline to see how quickly you can put together a system to encode video to different bitrates and formats.
8.1.1 How to transcode a video
In the first edition of this book, we built a YouTube clone using the AWS Elastic Transcoder. The Elastic Transcoder service takes uploaded videos and transcodes them from one format to another. This is useful because you can downscale videos or change their format. Ultimately, we built a video website with the Elastic Transcoder in the first edition, but Elastic Transcoder remained a black box. How does it work? What makes it tick? It’s a managed service so we don’t know.

This is an excerpt from Manning's book Azure in Action.
Some enterprise applications rely on child processes to be run in an asynchronous way. As a way to show how to work with external processes, you’re going to build a small website that converts videos to different video formats. Because we don’t want you to write all the video conversion code, you’re going to leverage FFmpeg.
An alternative to downloading an entire media file is to use streaming. When media is streamed, the streaming server starts sending a byte stream of the video to the client. The client media player creates a buffer of the downloaded bytes, and starts playing the video when the buffer is sufficiently full. While the user is watching the video from the buffer, the client continues to download the data in the background.
Media streaming lets the user start watching the video within seconds, rather than requiring the user to wait for the entire movie to download. If the user decides to watch only the first few seconds of the movie, the service provider will have served up only some of the movie, which results in cheaper bandwidth bills. Unfortunately, streaming isn’t currently available as an option in Windows Azure and the Windows Azure BLOB storage service. If you want to use such a solution, you need to use a third-party streaming service.
By default, Silverlight supports the ability to progressively download files. In this example, we’ll tell you how to build a small Silverlight video player that will allow you to play movies on your web page that are hosted by BLOB storage. Figure 10.9 shows a small video player that you’ll build. The video player is playing a video served directly from BLOB storage using the public URI.
The following XAML is used to play the video in WPF: