-
App 1: Has 3 components a. Seeder: On every run, generate a Seed object with label = “1-#{rand}” and store it to database. b. Consumer: On every run, randomly taking a non consumed Seed object, add an object Fruit with property seed_id refer to that Seed object and then mark that Seed as consumed. The Fruit has a random name “f-#{rand}” c. Scheduler: Trigger seeder every 2 minutes and consumer every 5 minutes
-
App 2: Has 3 components a. Seeder: On every run, generate a Seed object with label = “2-#{rand}” and store it to database. b. Consumer: On every run, randomly taking a non consumed Seed object, add an object Fruit with property seed_id refer to that Seed object and then mark that Seed as consumed. The Fruit has a random name “j-#{rand}”. c. Scheduler: Trigger seeder every 1 minutes and consumer every 2 minutes
-
App 3: expose 2 urls a. /report1: Display a list of recent 10 items from App 1 (string and consumed flag) b. /report2: Display a list of recent 10 items from App 2 (string and consumed flag)
-
Notifications
You must be signed in to change notification settings - Fork 0
kevtran410/test2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published