My colleague and I disagree over the statement that REST can be implemented over FTP. I believe since REST is just an architectural design, it can be implemented over any protocol with a suitable interface, e.g, FTP. However, he disagrees and believes that currently except HTTP REST can't be implemented on any protocol.I showed him a few comments and links but he isn't accepting them. Who is correct?
Same question on Quora
Can REST be followed by STOR?
FTP Wikipedia
After issuing a REST command, the client must send the appropriate FTP command to transfer the file. The server will use the marker specified in the REST command to resume file transfer at the specified point.
REST is not necessarily tied to HTTP. RESTful web services are just web services that follow a RESTful architecture. HTTP is a contract, a communication protocol and REST is a concept, an architectural style which may use HTTP, FTP or other communication protocols but is widely used with HTTP.
The REST API limits the rate of requests you can make to 15 requests per second. If you are performing certain operations that are resource-intensive, you may adversely affect performance of your system.
REST is a broad concept without any real stringent definition. The way it is mostly used with HTTP (i.e. GET, POST, PUT, DELETE.. methods) could be easily mirrored with most other protocols, provided you control the server side too. With a normal FTP server this is probably not possible (GET, PUT, DELETE could probably be mapped to RETR, STOR and DELE, but POST not) but the FTP protocol itself could be used with a custom server and I've actually seen the FTP protocol misused for database like transactions with commit and rollback (scary!).
So if you control the server you could probably implement the ideas of REST on any protocol which makes it possible to exchange data in both directions, i.e. FTP, plain TCP or UDP, avian carrier, snail mail and maybe rainbow unicorns. But that does not mean that these protocols are really suited for this task.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With