News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
Thoughts on API centric architecture
September 11, 2012 @ 09:17:50

On Reddit.com there's a recent post talking about an API-centric architecture that would separate out business logic from user logic.

I'm in a fairly unique position of being able to refactor an existing site that gets a moderate amount of traffic (~10k per day). Technically speaking, it probably does not NEED to be rebuilt from ground up, but as this is somewhat of a hobby project for me, I am choosing to rebuild it because I think there are significant long term benefits and because of the learning experience it affords me. [...] The solution that I've come up with, so far, is to create a single library whose sole responsibility is to handle system / business level interactions that occur. This API is completely segregated from any consumer facing frontend and de-coupled from any particular framework implementation.

Comments on the post are mostly supportive - they're in favor of the API-for-business-logic approach, but some recommend other methods than the single library attack. There's suggestions of using current frameworks to handle some of the "dirty work" involved in setting up the API and a mention of focusing on performance as well as functionality.

0 comments voice your opinion now!
api apicentric architecture opinion framework


blog comments powered by Disqus

Similar Posts

Frank Wu's Blog: Choosing a PHP Framework Round 2: Yii vs Kohana vs CodeIgniter

Emran Hasan's Blog: Quick start on new Facebook PHP SDK (IFrame based)

DevShed: Using Code Igniter to Build an IP-to-Country Mapping Application

Shift8 Blog: Moving from CakePHP to Lithium: Helpers

Paul Jones' Blog: Lazyweb Request: Why would PHP be *faster* than HTML?


Community Events





Don't see your event here?
Let us know!


introduction podcast list opinion conference community laravel api bugfix symfony series deployment developer zendserver language tips framework interview library release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework