In the hierarchical architecture shown, Renren's open platform provides different levels of functionality. The red part of the figure indicates that a functional module is not currently available and needs to be provided by the platform or open source community in the future; The yellow section represents a functional module that has been provided in the old platform architecture but is being migrated to the new architecture; the other color is a functional module with a more complete function.
As you can see, Renren's open platform is roughly divided into three tiers, providing services for all forms of third-party applications at the top level:
- Core Service Layer: Realize the most basic API provided by Renren, define the interface parameters and the calling process, and third party or platform can encapsulate the SDK based on this level of API.
- SDK layer: A third-party or platform-side SDK for a variety of development languages or development environments.
- High SDK layer: the Advanced SDK built on top of the core Service layer or SDK layer, such as the Discuz SDK, is encapsulated based on the JS SDK.
Third-party applications can be developed using an API provided by any of the three tiers.
So why should we introduce such a layered architecture? Because it has the following benefits:
- Versatility. Better support for the web, mobile, desktop and other operating environments, providing a variety of forms of API. This provides rest APIs that require authorization to use, as well as widget APIs that can be used without authorization .
- Standardization. An important feature of the new architecture is its layered architecture and well-defined API interface, which facilitates a stable and clear programming environment for third parties.
- The clarity of the industry division of labor. One of the benefits of standardization is the ability to deliver SDK development and maintenance work to third-party open source communities, rather than all of them being done by the platform. The open source community develops the SDK on the API provided by the core Service layer layer, and third-party application developers develop applications based on the SDK.
- Easy to maintain and understand. A clear hierarchical model and well-defined interface specifications help to reduce the maintenance costs of the platform and facilitate the understanding of the Platform architecture by third parties.
- Expand the open range and provide more new features. Features that are not available through the rest API for security reasons, such as the Buddy feature, can be provided by the new widget API
Original address: http://www.cnblogs.com/babietongtianta/articles/3653867.html
The technology architecture of Renren open platform