Home / Companies / Upstash / Blog / Post Details
Content Deep Dive

Serverless Kafka Real World Example: Content Moderation

Blog post from Upstash

Post Details
Company
Date Published
Author
Enes Akar
Word Count
1,652
Language
English
Hacker News Points
-
Summary

The post describes the creation of a basic web application using Next.js that employs serverless computing to moderate user-submitted comments for inappropriate content before public display. The process involves sending comments to a Kafka topic, which then triggers an AWS Lambda function. This function uses the Sightengine API to assess the content's appropriateness, subsequently storing clean comments in a Redis list and inappropriate ones in a separate list. The application loads and displays these comments from Redis. The post also explains the rationale behind using Kafka for its versatility in data processing, allowing integration with various systems, and discusses the choice of AWS Lambda for its serverless architecture, although alternatives are possible. The example aims to demonstrate the ease of implementing complex systems using serverless tools.