In terms of integrating your webapp with other webapps and another way around I see two different integration types:
In my opinion, if you want your webapp to be successful, you need to think about both integration concepts directly in the beginning of your development. Don't create a webapp without a concept of ecosystem anymore!
1. Inside-Out Integration
This is the standard way and almost every webapps available use this possibility. For other webapps to be able to use some functionalities of your webapp you often offer Web services (mostly in RESTful manner) which can be called from outside or other webapps easily.
In this area you offen need following strategies and standards:
In this area you offen need following strategies and standards:
- Webservice protocol: REST for allowing to define the functionalities you want to export to other webapps.
- OAuth (two and three legged) for allowing other webapps to calls your webapp services, authorization.
- Sometimes OpenID for allowing other webapps to use the same login, authentification.
2. Outside-In Integration
This is still not commonly used in webapps development. In some desktop apps we know this as a concept of Extensions and/or Plugins (I use these terms exchangeable). This integration lets other webapps run in the context of your webapp.
Mostly this is the second step after you implement the first step above (Inside-Out integration) because you need all the things from the first step. All in all you'll need following strategies and standards:
Mostly this is the second step after you implement the first step above (Inside-Out integration) because you need all the things from the first step. All in all you'll need following strategies and standards:
- Webservice protocol: REST for allowing to define the functionalities you want to export to other webapps.
- OAuth (two and three legged) for allowing other webapps to calls your webapp services, authorization.
- Sometimes OpenID for allowing other webapps to use the same login, authentification.
- OpenSocial Gadgets to allowing other webapps integrating their Plugins or Extensions into your webapp. Users of your webapp will be able to install such Plugins or Extensions for their own needs.
- AppStore or Market Place or WebStore (I use these terms exchangeable) to let your webapp users' easily browse, select, buy, install and review the Plugins or Extensions from a central repository.
- Sometimes OSGi to let people extends your webapp with some new functionalities. This is however a tight integration of Plugins or Extensions with your webapp which is not easily done and needs more mature concept of your webapp (security, dependencies). Such an integration will not be available per user basis, instead it will be an extension per webapp. The system administrator of your webapp will likely install such Plugins or Extensions.
The main idea of doing these two integration concepts is to build a big ecosystem for your webapp so that a lot of people will use your webapp. By doing these two steps you will be able to open your webapp, not only that other webapps can integrate some functionalities or services of your webapp in theirs but also they will be able to extend the functionalites or services within the context of your webapp.
Let's take a short look of some successful webapps and how they support the two types of integration concepts I mentioned above:
1. Facebook: No doubt, both integrations have been done here. You have Facebook API (e.g.: Like Button) for the first and Facebook Apps (Canvas app) for the second.
2. Twitter: This webapp only supports the first integration as a collection of Twitter API (e.g.: Tweet Button, REST API). They still do not support the concept of Extensions for the second integration type.
3. Google Mail: This webapp supports both integration types. For the first type they offer e.g.: Email Settings API and OAuth Access to IMAP and SMTP API. For the second type you can use Sidebar Gadgets for visual Plugins and Contextual Gadgets for non-visual Plugins. For more information please take a look at this API documentation.
Let's take a short look of some successful webapps and how they support the two types of integration concepts I mentioned above:
1. Facebook: No doubt, both integrations have been done here. You have Facebook API (e.g.: Like Button) for the first and Facebook Apps (Canvas app) for the second.
2. Twitter: This webapp only supports the first integration as a collection of Twitter API (e.g.: Tweet Button, REST API). They still do not support the concept of Extensions for the second integration type.
3. Google Mail: This webapp supports both integration types. For the first type they offer e.g.: Email Settings API and OAuth Access to IMAP and SMTP API. For the second type you can use Sidebar Gadgets for visual Plugins and Contextual Gadgets for non-visual Plugins. For more information please take a look at this API documentation.
Next time I'll take a look at how you can plan and implement both integration steps in a simple webapp project. What are the things you need to take care of.
Cheers,
Lofi.
Comments