Microservices deployed with Kubernetes that enable users to propose hat pictures

The Scenario

TinyHat.Me is an up and coming startup that provides an API to allow users to try on tiny hats via a REST API. The startup is looking to you to ship some awesome new features! While we have a frontend working to serve tiny hats from a database, the startup is looking to add some exciting new features. Today, as the newest backend engineer at TinyHat.Me, you are going to be learning how the microservices work, as well as fix a few outstanding bugs from our customers!

The Outline

🔨 Building

  • What are Microservices?
  • Let’s write the /email and /moderate services!
  • Hello? Are you there? How do the pods communicate?

🚀 Deploying

  • What even is Kubernetes, the whale, and containers?
  • Containerizing with Docker
  • EKS: it does not stand for Ecstatic Kittens Surfing
  • Let’s spring into action: Deploying Continuously with Github
  • Routing traffic with Route53 and DNS configuration

🐛 Debugging

  • Yikes! Innappropriate hats are on the website!
  • We have complaints about the fetch feature…
  • The moderate can’t moderate?

API Documentation

?number (optional): How many hats you want!

[GET] /
Returns a random tinyhat on Bob Ross.

[GET] /${hat style}
Returns a specific hat style on Bob Ross.

[GET] /api/hats
Returns a JSON object of all hats’ image links and style identifiers.

[POST] / POST with multipart/form-data: image with face

Returns a random tinyhat on your POSTed image.

[POST] /${hat style} POST with multipart/form-data: image with face

Returns a specific hat style on your POSTed image.

[POST] /add POST with multipart/form-data: image with hat and name attribute

Emails moderator with your proposed hat for moderation.




Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

GIPHY App Key not set. Please check settings

A headless Vue 3 notification library to use with Tailwind CSS

React hooks for resumable file uploads using tus