danizt / DaprTrafficControl

How to use Dapr and deploy to Azure Container Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What The Hack - Traffic Control with Dapr

⭐️ Challenges completed

Introduction

This hack contains several hands-on challenges that will introduce you to Dapr. You will start with a simple ASP.NET Core application that is composed of several microservices. In each challenge, you'll enhance the application by adding Dapr building blocks and components. At the same time, you'll configure the application to consume Azure-based backing services. When complete, you'll have implemented the following Dapr building blocks:

  • Service invocation
  • State-management
  • Publish / Subscribe
  • Bindings
  • Secrets management

As Dapr can run on a variety of hosts, you'll start by running Dapr in self-hosted mode on your computer. Then, you'll deploy the Dapr application to run in Azure Kubernetes Service and/or Azure Container Apps.

Learning Objectives

The challenges implement a traffic-control camera system that are commonly found on Dutch highways. Here's how the simulation works:

Speeding cameras

There's 1 entry-camera and 1 exit-camera per lane. When a car passes an entry-camera, a photo of the license plate is taken and the car and the timestamp is registered.

When the car passes an exit-camera, another photo and timestamp are registered. The system then calculates the average speed of the car based on the entry- and exit-timestamp. If a speeding violation is detected, a message is sent to the Central Fine Collection Agency (or CJIB in Dutch). The system retrieves the vehicle information and the vehicle owner is sent a notice for a fine.

Challenges

Prerequisites

Repository Contents

  • ./Coach/Solutions
    • Coach's Solutions and related files
  • ./Student/Resources
    • Student's Challenge Guide

Contributors

  • Jordan Bean
  • Eldon Gormsen
  • Sander Molenkamp
  • Scott Rutz
  • Marcelo Silva
  • Rob Vettor
  • Edwin van Wijk
  • Chandrasekar B
  • Alberto Diaz

About

How to use Dapr and deploy to Azure Container Apps


Languages

Language:C# 59.8%Language:Bicep 35.4%Language:Dockerfile 3.0%Language:PowerShell 1.8%