So, I read a lot in SOA and tried to implement something useful. I started with a simple blog post by creating a RESTful API. So far, so good. It works great. However, I'm starting to pull my hair when writing a web interface that will use the RESTful API. I do not know if I am doing the right thing.
For example, the web interface has an admin panel. This admin panel makes HTTP requests to the API through the file_get_contents and stream parameters. Right now, the API is localhost as well as the web interface, but the whole process is a bit slower. It is right? Is this the right way to implement SOA? In addition, I am dealing with small bits of duplicate code for verification. Where should I check the data? In an API or web interface? What is the best approach?
Tips, tutorials and especially books are welcome. This is done using Silex, built on top of Symfony components.
source
share