I have the following questions
[1]. There is a management system that requires CRUD operations most frequent. For example int GetUserLimit(), List GetUserList(), int AddNewUser(User user), bool DeleteUser(), IsAuthenticated(string username, string passwrd)
For the functions listed above, the web application may want to wait for some return.
In that case, whether it is better to provide web services directly for web application, or we do not expose those web service, but rather web application communicates with EBS via request/reply pattern?
solution 1:
https://i.stack.imgur.com/cIRUR.png
solution 2:
If web application "sends" a command to one component A, then component A replies a message to a certain queue called "webmsgqueue" or push a message to a nosql server. And web application uses ajax polling method to check the mssage in "webmsgqueue" or the nosql server.
https://i.stack.imgur.com/F7qTs.png
[2] If data we are querying or uploading is large, is it better to choose web service ?