Architecture¶
The architecture is intended to be modular. The two components are flask views and pig latin translation module
Microservice¶
What make this implementation a microservice is its simple HTTP API. It is independently deployable. Being modular and simple is a design focus.
Web Views¶
The web views are responsible for managing the demo and the api. They mange the requests and responsd appropriately. The views are seperated from the pig latin translation logic and thus are independent of it.
Pig Latin Module¶
The Pig Latin Module is only responsible to translate a given text to its proper pig latin translation. Since it is ignorant of flask and its views, its test cases are simple input output assertions on pure functions.