4 ms·
I am not sure that it has its place in distributed systems. That sort of tight service coupling was the SOAP model. A REST model will tell you the valid actions
by justincormack 16y ago
I am not sure that it has its place in distributed systems. That sort of tight service coupling was the SOAP model. A REST model will tell you the valid actions at runtime ie the valid moves or actions as URLs, a looser coupling and also safe.
- Peaker 16y agoHow does static typing increase coupling?
- justincormack 16y agoYou have to recompile both sides of the API if you change the types and redeploy together.
- Peaker 16y agoA change of types would almost always accompany a change in semantics. Wouldn't you need to redeploy both anyway when you have a change of semantics? If you retain the old API with the old semantics, you could of course retain the old type, too.
- justincormack 16y agoNo, you can add a field on a server that some clients do not yet use without changing the semantics for the clients that do not know about it, for example. The loosely coupled model is more or less Duck typing for interfaces.