🐜
tiny engines
  • Tiny Engines
  • Personal Website Home
  • NFL machine learning capstone
    • project presentation
    • project proposal
    • project approach
    • project structure
    • project workflow
    • project summary
    • project code
  • Onboarding new hires
    • motivation
    • the project
    • the mailer service
      • mailer setup
      • walk-through
      • unit testing
      • testing the controller
      • testing the handler
      • testing the mailer
      • integration testing
      • integration example
      • acceptance testing
      • acceptance example
      • documenting the API
      • test coverage
      • performance testing
      • mutation testing
      • grammar checking
    • the event listener
      • design
      • webhook setup
      • walk-through
      • testing
      • the kafka connector
  • Walk-throughs
    • spark streaming hld
      • background
      • architecture
      • threat
      • project
      • transform-design
      • transform-poc
      • query-poc
    • kafka walkthroughs
    • java futures
      • async servers
      • async clients
      • async streams
Powered by GitBook
On this page

Was this helpful?

  1. Onboarding new hires

the mailer service

Previousthe projectNextmailer setup

Last updated 3 years ago

Was this helpful?

Our first service is a basic blocking spring boot java rest service that receives a simple request to email some recipient.

The service should:

Component Detail

SendgridController (Controller) 1. accepts the json request 2. passes it to the SendgridHandler 3. Receives a Response and displays it ot the user

SendgridHandler (Handler) 1. receives the json request from the controller 2. validates the json 3. passes it as a SendgridRequest object to the SendgridMailer 4. receives the Response from the Mailer and sends it back to the Controller

SendgridMailer (Mailer) 1. receives the SendgridRequest from the Handler 2. validates the data 3. reformats it to a SendGrid Request object 4. Sends the Request to the SendGrid API 5. receives the Response from the API and sends it back to the Handler