Skip to main content

On This Page

From Missed Flights to Automated Reminders: Building a 24-Hour AWS Reminder System

2 min read
Share

These articles are AI-generated summaries. Please check the original sources for full details.

From missed flight to mission: building a 24-hour reminder service on AWS

A missed flight inspired a 24-hour AWS reminder system. The solution uses DynamoDB, Lambda, and SNS to prevent last-minute panic.

Why This Matters

Human memory is fallible, but systems aren’t. The ideal model assumes perfect recall, but real-world failures—like missed flights—cost time, money, and stress. This project demonstrates how serverless AWS tools can mitigate such risks at minimal cost. DynamoDB ensures data reliability, Lambda automates checks, and SNS delivers notifications, creating a robust yet simple solution.

Key Insights

  • DynamoDB for structured data storage: Stores appointment details with partition key Name and attributes Date, Time.
  • Serverless compute with Lambda: Triggers scans every 24 hours to identify upcoming appointments.
  • SNS for notifications: Sends email/SMS alerts via a configured topic.

Working Example

// index.js (AWS Lambda function)  
const AWS = require('aws-sdk');  
const dynamodb = new AWS.DynamoDB.DocumentClient();  
const sns = new AWS.SNS();  

exports.handler = async (event) => {  
  const now = new Date().toISOString();  
  const params = {  
    TableName: 'Appointment',  
    FilterExpression: 'Date = :today',  
    ExpressionAttributeValues: { ':today': now }  
  };  

  const data = await dynamodb.scan(params).promise();  
  const appointments = data.Items;  

  if (appointments.length > 0) {  
    const message = `Reminder: ${appointments[0].Name} is today at ${appointments[0].Time}`;  
    const snsParams = {  
      TopicArn: 'arn:aws:sns:region:account:AppointmentReminders',  
      Message: message,  
      Subject: 'Appointment Reminder'  
    };  
    await sns.publish(snsParams).promise();  
  }  
};  

Practical Applications

  • Use Case: Personal or enterprise appointment reminders using AWS serverless stack.
  • Pitfall: Over-reliance on automated systems without manual verification may lead to false negatives if the system fails.

References:


Continue reading

Next article

I Built a Task Manager Empire in One Day — And Deployed It for Free!

Related Content