You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/ewgRa/test_tasks/system_design/moderation_queue

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ewgRa/test_tasks/system_design/moderation_queue

v0.0.0-20210122212915-c548d3f0fc17
Source
Go
Version published
Created
Source

System design - Moderation queue - CI

Task definition

This is proof of concept for the following task:

We have a stream of objects that should be moderated. Objects can belong to several categories. Moderators can subscribe to several categories, and we should show objects for moderation only to one moderator. The moderation process should support timeouts when the moderator lost connection, or similar.

High-level design

Consume activity diagram

Usage

  • Run make up
  • Open in browser Swagger UI http://localhost:8090/
  • Create topic http://localhost:8090/#/topic/createTopic
  • Create categories for the topic http://localhost:8090/#/topic/createCategory
  • Open new terminal and start consumer for the topic and categories: make start-consumer topic=test_topic categories=test_category1,test_category2
  • Send messages http://localhost:8090/#/topic/createMessage
  • Create more consumers in case of needs and send more messages

FAQs

Package last updated on 22 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts