swsnu / wecfall2014

0 stars 0 forks source link

SaaS and API #23

Open jsryu21 opened 9 years ago

jsryu21 commented 9 years ago

SaaS means every sevice should use or privide REST API for using database?

Or in MVC, functions in models could mean SaaS?

johnyangk commented 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.

bgchun commented 9 years ago

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.

jsryu21 commented 9 years ago

@johnyangk @bgchun thanks for answering my question.