Skip to content

This project is created to be a lesson, how to use async-await, EventEmitter, Common design patterns

License

Notifications You must be signed in to change notification settings

csakbalint/lesson-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project: Scheduler

The purpose of this project is to teach how to use async-await, EventEmitters, Common design patterns. The project has several modules, which will be described below. Usage of patterns, common practices, native modules during development is strongly advised. At the end of the development, the developer will learn how to build a Node.js app in microservice-architecture, use the native modules and the common, scalable practices well.

Environment

  • Node.js 8.x
  • Yarn
  • External libraries are excluded

Development

The app should be developed iteratively: every level has more-and-more features, its modules works better together.

I. iteration

The task in the first iteration is to create a simple one-process scheduler. There are the following modules:

  • Task emitter: generate tasks random intervals, and send to process, wait for the result
  • Task solver: wait for the tasks, process them and send back their results
  • Task manager: wait for the tasks or the results, store and schedule them, then send to the corresponding handler

You have to use the Factory and the Flyweight pattern for these modules.

About

This project is created to be a lesson, how to use async-await, EventEmitter, Common design patterns

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published