<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="https://publishpress.com/"
	>

<channel>
	<title>importance of a services layer Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist</title>
	<atom:link href="https://www.anujvarma.com/tag/importance-of-a-services-layer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.anujvarma.com/tag/importance-of-a-services-layer/</link>
	<description>Production Grade Technical Solutions &#124; Data Encryption and Public Cloud Expert</description>
	<lastBuildDate>Fri, 30 May 2014 22:44:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://www.anujvarma.com/wp-content/uploads/anujtech.png</url>
	<title>importance of a services layer Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist</title>
	<link>https://www.anujvarma.com/tag/importance-of-a-services-layer/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Always build a services tier (layer) even if you don&#8217;t think you may need it</title>
		<link>https://www.anujvarma.com/always-build-a-services-tier-layer-even-if-you-dont-think-you-may-need-it/</link>
					<comments>https://www.anujvarma.com/always-build-a-services-tier-layer-even-if-you-dont-think-you-may-need-it/#respond</comments>
		
		<dc:creator><![CDATA[Anuj Varma]]></dc:creator>
		<pubDate>Fri, 30 May 2014 00:03:22 +0000</pubDate>
				<category><![CDATA[SOA Applications]]></category>
		<category><![CDATA[importance of a services layer]]></category>
		<category><![CDATA[justification for a services layer]]></category>
		<guid isPermaLink="false">http://www.anujvarma.com/?p=2556</guid>

					<description><![CDATA[<p>There is a lot of debate on the prevalence of the service layer (web services tier) – in almost every app (web or non web) built today. Martin Fowler also [&#8230;]</p>
<p>The post <a href="https://www.anujvarma.com/always-build-a-services-tier-layer-even-if-you-dont-think-you-may-need-it/">Always build a services tier (layer) even if you don&rsquo;t think you may need it</a> appeared first on <a href="https://www.anujvarma.com">Anuj Varma, Hands-On Technology Architect, Clean Air Activist</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There is a lot of debate on the prevalence of the service layer (web services tier) – in almost every app (web or non web) built today. Martin Fowler also promotes such an approach. </p>
<p>In my experience, not only is it a good practice, it is a MUST DO practice for the following reasons</p>
<p>Multiple Clients &#8211; The top reason cited by most advocates is simply that you cannot be guaranteed that you will have a single client type (say a desktop browser). You may end up with a mobile app client, another web service client or a multitude of other clients. The services layer serves as the entry point for all these clients – and in a lot of cases, handling your new client is as simple as providing another binding – a simple CONFIGURATION change. It is hard to beat that for the effort required to handle new clients.</p>
<p>While handling multiple types of clients is an important motivation for building a services layer, I find another compelling reason. When I start approaching any new application, the business operations seem to map naturally to service operations. If I think in terms of <em>CreatingNewAccounts</em> or <em>UpdatingCustomer</em><em>Info</em>&#8211; those seem to be ideally mapped to an <em>AccountService</em> and a <em>CustomerService</em> respectively.&nbsp; Even as the business operations span across a single transaction (for e.g. <em>AddItemToShoppingCart</em> and <em>CheckOut</em>), it is easier to map these through attributes in the Services Operation.</p>
<p>The first starting point is always the<em> service interface</em> (a list of all the operations that the service will support). To me, any n-Tier app – needs to start with the Services tier –and then be concerned about the data access or the data tier or the web tier.</p>
<p>&nbsp;</p>
<h3>When might it be overkill?</h3>
<p>If you see no other potential client except for the simple web client that you are building – if you see no future mobile clients or other services calling this functionality, the services layer may not be necessary. A simple MVC app – with your controller actions mapped to user operations would be sufficient. </p>
<p>The post <a href="https://www.anujvarma.com/always-build-a-services-tier-layer-even-if-you-dont-think-you-may-need-it/">Always build a services tier (layer) even if you don&rsquo;t think you may need it</a> appeared first on <a href="https://www.anujvarma.com">Anuj Varma, Hands-On Technology Architect, Clean Air Activist</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.anujvarma.com/always-build-a-services-tier-layer-even-if-you-dont-think-you-may-need-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Content Delivery Network via N/A
Minified using Disk

Served from: www.anujvarma.com @ 2026-07-22 12:30:49 by W3 Total Cache
-->