Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.29 KB

initial-implementation.md

File metadata and controls

44 lines (26 loc) · 1.29 KB

Initial implementation


Description

Twitter Scheduler provides the capacity to schedule the publication of tweets in Twitter social network.

It allows to create pending tweets with a publication date and a message (Tweet content).

There is a scheduled task, executed every three minutes, that checks if there is any pending tweet with a publication date before that current time (UTC) plus three minutes (in order to cover up to next scheduled execution). If there are tweets that match with these requirements, it will be published.

The scheduler can be disabled in /togglz application path (credentials needed)

Domain

initial-domain

Database

Implemented with Spring Data JPA

initial-database

REST API

OpenAPI specification has been used to document provided REST API:

openapi

Example of pending tweet creation request:

{
  "message": "This is a test tweet content",
  "publicationDate": "2022-04-10T10:00:00Z"
}