<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Osaigbovo Emmanuel on Medium]]></title>
        <description><![CDATA[Stories by Osaigbovo Emmanuel on Medium]]></description>
        <link>https://medium.com/@osaigbovoemmanuel1?source=rss-5c8f3e895ba5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Dr5nO7db64RFVspN2hDvhw.jpeg</url>
            <title>Stories by Osaigbovo Emmanuel on Medium</title>
            <link>https://medium.com/@osaigbovoemmanuel1?source=rss-5c8f3e895ba5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:51:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@osaigbovoemmanuel1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Is the Richardson Maturity Model Relevant in 2019.]]></title>
            <link>https://medium.com/@osaigbovoemmanuel1/is-the-richardson-maturity-model-relevant-in-2019-80e0cd211483?source=rss-5c8f3e895ba5------2</link>
            <guid isPermaLink="false">https://medium.com/p/80e0cd211483</guid>
            <category><![CDATA[richardson-maturity-model]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rmm]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[restful-api]]></category>
            <dc:creator><![CDATA[Osaigbovo Emmanuel]]></dc:creator>
            <pubDate>Sat, 23 Mar 2019 17:33:26 GMT</pubDate>
            <atom:updated>2021-10-24T12:05:10.181Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is the Richardson Maturity Model Relevant in 2021?</h3><p>Before giving reasons why RMM is or is not relevant in 2021, I would love to give an insight into what this Richardson Maturity Model Means and other terms that go side by side with it (such as WWW, REST, and its architectural constraints).</p><p>World Wide Web (WWW) has been in existence for over 2 decades now, it can be thought of as a massively scale-able distributed system, there are millions of HTTP Clients such as browsers or applications that are connecting to HTTP servers at any point in time and the web system continues to work very fine.</p><p>The idea of REST API is to adopt the work style or architecture for building integration components and distributed applications, in other words, think of the known WWW or web style as the foundation for REST APIS.</p><p>Leonard Richardson created this maturity model to relate the aspect of the World Wide Web with the REST APIS, it provides a simplified way of relating the known web techniques design and architecture with the REST API.</p><p>The Richardson Maturity Model is a way to grade your API according to the architectural constraints of REST. The better your API adheres to these constraints, the higher its score is. The Richardson Maturity Model knows 4 levels (0–3), where level 3 designates a truly RESTful API, but what are these REST architectural constraints? We would discuss the four (4) levels after understanding the REST architectural constraints.</p><h3>REST Architectural Constraints</h3><blockquote>what makes an architecture RESTful? In order for an architecture to be RESTful the developer has to follow six(6) design rules, the six (6) are also known as the “<strong>REST architectural constraints”. </strong>This RESTful architectural constraints were described by Roy Fielding in his dissertation paper in the year 2000.</blockquote><p><strong>1 Client — Server (Separation Of Concern)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*LnskaFUptr2fK4gfI7BJ5w.jpeg" /></figure><p>This architectural constraint is the foundation for REST architecture, in a typical client-server architecture the client connects to the server by way of some uniform interface, what this kind of architecture leads to is the separation of concern, and what does separation of concern mean? Let us assume you are building a typical web application(client-server application), when you are developing the server side you will have to address certain concerns like the “performance”, “scaling of the application”, “data-caching (how would you cache the data)”, “authentication and authorization”, “data security”, “database” etc the idea is that when you are building the server-side of the application you have these set of concerns and in fact many more that you would have to address as part of the server-side development. When you are developing the client-side of the application the one thing you have to keep in mind is basically providing the data(views) to your end users hence you have to keep in mind the “user experience”, “user interface”, “multiple device support” etc.</p><p>If you look at it there is a different set of concerns from the server and the client-server, to achieve this separation of concerns you would have to write your application in such a way that the client and server would not reside in the same process, in order words they are not sharing any code within the same process, this then leads to the server code been decoupled from the client code as there is no dependency and what that leads to is that the client or server can change or evolve without impacting each other.</p><h4><strong>2 Uniform Interface</strong></h4><p>The uniform interface architectural constraint states that the client and server have a common “technical” interface. Now, what is an interface? An interface is a contract for communication between the client and server. Notice that I placed technical in quotation marks and the reason why is because in the context of this constraint there is no description of the business aspect(no business context) this is a pure contract that defines the technical aspects of communication between the client and the server.</p><p>The contract is defined using HTTP methods and media types, the benefit of this mechanism is that it decouples the architecture; the components can evolve independently as long as they adhere to the contract.</p><blockquote><strong>There are four guiding principles to the uniform interface constraint</strong></blockquote><blockquote>1. Identity of the resource(URI/URL)</blockquote><blockquote>The idea here is that the REST API exposes the resources and to manipulate the state of the resources there is a URL the client can use</blockquote><blockquote>example: HTTP/1.1 GET <a href="http://api.acmetravel.com/vacations">http://api.acmetravel.com/vacations</a></blockquote><blockquote>2. Representation of the resource</blockquote><blockquote>On the server end the data is managed in the database so there is a some of representation for the resource on the server side, on the other hand the client may need the data in XML or JSON or text format etc. So idea here is that the client receives the data in a format which maybe different from the data on the server end.</blockquote><blockquote>3. Self descriptive messages — metadata</blockquote><blockquote>The idea here is that the requests and responses that are exchanged between the client have enough meta data for each end to be able to process the information in that request and response.</blockquote><blockquote>This metadata is transferred by way of HTTP headers(for example in the response that the server sends there will be a Content-Type, the Content-Type may indicate to the client that the response as JSON or XML type and the client can select the appropriate parser for the response, another example is HTTP status code which tells the client the status of the request or response, the code can be set 400 for example if the specific resource is not found if everything goes fine then this code may be equals to 200, so the client can use this status code to understand the status of the request or response).</blockquote><blockquote>The client from its own end can set the metadata for example the client can set the metadata for what kind of format or resource representation it can accept(sending an Accept header and setting to application/json)with this the server then knows the client wants JSON and then sends back JSON representation of the resource</blockquote><blockquote>4 Hypermedia</blockquote><blockquote>This principle states that the server not only sends the response data but also sends the possible actions the client can take on the resource or data, this also mostly referred to as HATEOAS (Hypermedia As The Engine Of Application State).</blockquote><h4>3. Statelessness</h4><p>When designing a REST API you have to keep statelessness in mind(no state management on the server), also you have to know that each client request is independent of any request(s) made by the client previously, also the request sent by the client must have all the information the server would need in order to process that request</p><h4>4. Cache able / Caching</h4><p>The previous constraint “Statelessness” has a negative impact on performance, it also leads to chattiness, and would also lead to higher data traffic(because the client would need to send all the information the server would need to in order to process the request).</p><p>So these are some of the negative impacts of statelessness, caching can actually counterbalance some of these negative impacts. Hence with caching we can be able to achieve better performance, higher scalability, and reduce chattiness.</p><p>The REST architecture constraint for caching requires that the server marks the responses as either cacheable or non-cacheable, the caching is controlled by the server by way of HTTP headers.</p><p>The first header is the “Cache-Control” directive which allows the server to control the policy for the cache (cache-policy directive — who can cache the data, how long can the data be cached, and under what conditions the data can be cached(example private;max-age=60), all these are contained within the Cache-Control header, another header is the Expires which tells the client when the resource or the data that is cached would get expired, another header is Last-Modified which tells the client when last the cached resource was modified, the last header is the E-tag header attaches a unique identifier to the response.</p><p>These headers are set by the server and are leveraged by the client and the intermediaries.</p><h4>5. Layered System</h4><p>The layered system architectural constraint states that the REST API architecture should consist of multiple layers and each of these layers within the architecture can change independently of the other layers.</p><p>It also states that the client must not connect directly to the app server, there are various benefits to this such as simplification of the architecture and the architecture can evolve without disruption.</p><h4>6. Code On-Demand (optional)</h4><p>The code on-demand constraint states that the server can extend the client’s functionality by sending some code, in order words, the server is not only sending response data to the client but also executable code(eg a java applet, JavaScript, flash etc). This constraint is optional which means if you are following the five previously described constraints and you are not following the code on demand constraint then your architecture can still be considered as RESTful.</p><h3>How do I know if my current Architecture is RESTful?</h3><blockquote>So many enterprises today are investing in building RESTful APIS and architecture, the idea is to understand what level of maturity these enterprises have achieved. Are there any architectural practices in compliance with the REST architectural constraints and design principles? To estimate the maturity of an enterprise you can then use Richardson Maturity Model (RMM), in the Richardson Maturity Model (RMM) the enterprise gets assigned a score of 0 -3 for their maturity and in use of REST architectural pratices.</blockquote><h3><strong>RICHARDSON MATURITY MODEL (RMM) LEVELS.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*T-Le5_kVGeJcQ_XGKcbTbA.png" /><figcaption><a href="https://martinfowler.com/articles/richardsonMaturityModel.html">https://martinfowler.com/articles/richardsonMaturityModel.html</a> <em>Figure 1: Steps toward REST</em></figcaption></figure><h4>Level 0: Swamp of POX</h4><p>The level 0 in this model suggests the use of HTTP or RPC(Remote Procedure Call) invocations</p><h4>Level 1: Resources</h4><p>In level 1 the models suggest that instead of thinking of the web as a collection on endpoint think of it as a collection of resources.</p><h4>Level 2: HTTP verbs</h4><p>The idea of HTTP verbs is that you use the various HTTP methods for manipulating the resources</p><p>Don’t use a single POST method for all, but make use of GET when you are requesting resources, and use the DELETE method when you want to delete a resource. Also, use the response codes of your application protocol. Don’t use <a href="http://httpstatus.es/200">200</a> (OK) code when something went wrong for instance. By doing this for the HTTP application protocol, or any other application protocol you like to use, you have reached level 2.</p><h4>Level 3: Hypermedia controls</h4><p>Level 3 of this model suggests that clients making a call to the server not only receives data or state of the resource but also the links to actions it can take on the resource.</p><p>This level introduces the concept of HATEOAS (Hypermedia As The Engine Of Application State)</p><h3>Is the Richardson Maturity Model Relevant in 2021?</h3><p>Richardson Maturity Model “<strong>IS STILL</strong>” relevant in 2021 reasons be:</p><blockquote>A big advantage of using RESTful APIS (That as attained the level 3 of RMM) is the ability to layer and apply cache constraints. James describes how <strong>layering</strong> is important because it impacts the overall platform architecture. Most platforms require application servers on the backend, load balancers and reverse proxies on the front end, and the ability to push data to CDNs (Content Delivery Networks) on the edge. Working over HTTP enables this sort of communication between all intermediaries along the way. If you adhere to the HTTP specs, there’s a whole lot of advantage, and it can even increase API security.</blockquote><blockquote>As we’re seeing with <a href="https://nordicapis.com/12-frameworks-to-build-chatops-bots/">ChatOps</a>, RESTfulAPIs are now being used to insert tools into the conversation. As James puts it, “APIs are now meeting people where they need to get stuff done.” He’s primarily discussing how <strong>messaging channels</strong> like Slack are extending workflows into new environments. Now, people can make business critical decisions in their chat app of choice.</blockquote><blockquote>Hypermedia(Which is the level 3 of Richardson Maturity Model (RMM)) could help to <strong>customize content</strong> for these new environments while retaining UX across the board. By including unique URLs within a response package, hypermedia APIs can tell clients what capabilities are possible and in what scenarios. Hypermedia links(Which is the level 3 of Richardson Maturity Model (RMM)) could immediately reflect new user permissions, for example, without breaking changing on the client side. James sees hypermedia as a way for APIs to respond to next generation platforms and the new issues that may arise</blockquote><blockquote>There are also many enterprises today who have invested in building RESTful APIS and architecture and hence alot of codebase already built on this RMM(Richardson Maturity Model), so both experienced and new developers are to have solid understanding of this model to be to manage these codebases</blockquote><blockquote>Level 1 tackles the question of handling complexity by using divide and conquer, breaking a large service endpoint down into multiple resources.</blockquote><blockquote>Level 2 introduces a standard set of verbs so that we handle similar situations in the same way, removing unnecessary variation.</blockquote><blockquote>Level 3 introduces discoverability, providing a way of making a protocol more self-documenting.</blockquote><blockquote>The result is a model that helps us think about the kind of HTTP service we want to provide and frame the expectations of people looking to interact with it.</blockquote><p>acknowledgments: <a href="https://martinfowler.com/articles/richardsonMaturityModel.html">https://martinfowler.com/articles/richardsonMaturityModel.html</a>, <a href="http://restcookbook.com/Miscellaneous/richardsonmaturitymodel/">http://restcookbook.com/Miscellaneous/richardsonmaturitymodel/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80e0cd211483" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>