Coder Social home page Coder Social logo

reminders's Introduction

Golang

Reminder Scheduling System

Create a scheduler system using at least two Golang services. The services will work as the backend for an alarm system in which users can create alarms/reminders and share them with other users.

User should be able to create new schduled alarms with just a datetime, a small description and a list of users to send the alarm to.

Acceptance Criteria:

  • Create/deploy the backend services needed to support the system described above
  • Incoming requests will provide only user ids
  • Data should flow in the following manner
    • Upon receiving a schedule request, we need to:
      • Validate that the request data is in correct format
      • Validate the user ids listed in the request
      • If users are valid, we need to create a new reminder entry in the database
      • We also need to start tracking the time until it's time to raise the alarms, use goroutines to do this concurrently
    • Once it is time to trigger an alarm, we should:
      • Retrieve the reminder entry from the database
      • Retrieve the email addresses for the users listed in the reminder entry
      • "Send" the reminder entry with complete info to the output table
  • Organize the project code into meaningful packages, look at intro3 for a suggested structure
  • Two main services
    • One will be a data API, a simple API app that will retrieve user data from a postgres database.
    • Scheduler, a service that will receive schedule request and will start tracking scheduled alarms
  • Database
    • Use a separate schema for users
    • Use a separate schema for scheduled items
    • Use a separate schema for output
users type
user_id uuid
email text
scheduled_items type
id uuid
description text
users uuid[]
output type
id uuid
description text
emalis text[]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.