Using REST as Business Logic Layer ,Con and Pro [closed]
This is a quite generic question (e.g. like "I am going to by a car. 1) is it fast 2.) is it secure")
However, there are some things to say here:
- The question is not, if the "architecture" is secure, but if you can make the services that you are using secure. If you are using e.g. Tomcat for the rest services, they will be as secure as you can make tomcat secure.
- Since there is (or should be) no state in REST-services, this should scale well, provided you find the right granularity for your services and do not introduce artificial state-handling. If you attach a load-balancer in front of the REST-Services, each call could be sent to another machine (or process). This will most likely lead to the database being your bottleneck.
- Yes and no. What you describe as architecture is very generic. Basically there is no problem in it if you do it right. But you can produce a lot of problems with it if you do it wrong.
Conclusion: Security and scale will depend on the details and the components you are using. Basically an architecture-type like the on you chose should provide a good basis for a scalable architecture (and implementation).
精彩评论