How To Lose Weight During The Holidays

The holiday season can be a challenging time to maintain a healthy weight, as there are often many tempting food choices and less opportunity for physical activity. However, with a bit of planning…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Defining Video Metadata Messages

Practical Microservices — by Ethan Garofolo (119 / 166)

👈 Chapter 11 Building Async-Aware User Interfaces | TOC | Responding to Users When the Response Isn’t I mmediately Available 👉

We introduced the Creators Portal in Chapter 10, ​Performing Background Jobs with Microservices​. Our other team built the first version, and we’ll augment it, allowing users to see their uploaded videos via an interface like the following:

images/creators-portal-show.png

Let’s open the Creators Portal application and see how the other team set up the application:

The other team built this application following the pattern we’ve used for all our applications. It receives dependencies and sets up queries, actions, and handlers. It builds a router and adds routes for publishing a video (line 9), showing an individual video (line 10), and displaying the Creators Portal dashboard (line 11). There are handlers for each of those routes, and be sure to check them out when you can.

Our business team is saying that we’ll get more engagement with the site if the videos have names other than “Untitled,” and that seems reasonable. So we need to let our users name their videos. Maybe even rename them. That sounds like another state transition for videos, so we need to modify the video publishing Component to provide this state transition as well as add an Aggregator to reflect the change back into appropriate View Data. In the process, you’ll even seehere a use for building different View Data structures from the same events. Surely, such power isn’t meant for mere mortals, but here we are, so let’s get…

Add a comment

Related posts:

Setting Up Apache Kafka on Windows

4. If your ZooKeeper is running on some other machine or cluster you can edit “zookeeper.connect:2181” to your custom IP and port. For this demo, we are using the same machine so there’s no need to…

Commit to a Project

You have too many projects, and firefighting and multitasking are keeping you from finishing any of them. You need to manage your project portfolio. This fully updated and expanded bestseller arms you with agile and lean ways to collect all your work and decide which projects you should do first, second, and never. See how to ti

Ted Lasso Cured My Bitterness

When I first heard of of Ted Lasso, I disregarded it as another feel good sports comedy/drama that wouldn’t do anything new and wasn’t worth my time. Even after attempting to watch the first episode…