Open jsryu21 opened 9 years ago
@jsryu21
Do you mean exposing REST API for your specific database operations? If so, I don't think that is necessary. Yes you can use functions in models to interact with the database.
But, you do need to implement REST API for the client-facing interface(i.e. controllers and routes). For more details please refer to the slides "SaaS Architecture" posted in ETL. 53-61 pages cover the topic well.
You don't need to make every functionality to be a service that exposes REST API. Start with a simple approach and make it general if needed.
For PriceAlarm I believe you can carve out a few good services while designing your system architecture.
@johnyangk @bgchun thanks for answering my question.
SaaS means every sevice should use or privide REST API for using database?
Or in MVC, functions in models could mean SaaS?