<?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 Olga Annenko on Medium]]></title>
        <description><![CDATA[Stories by Olga Annenko on Medium]]></description>
        <link>https://medium.com/@O_Annenko?source=rss-6ebbf7a66efb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zL8cp0J-IHKuIhVljjlaHQ.jpeg</url>
            <title>Stories by Olga Annenko on Medium</title>
            <link>https://medium.com/@O_Annenko?source=rss-6ebbf7a66efb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:08:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@O_Annenko/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[SaaS integration strategy: Key approaches, trends and challenges]]></title>
            <link>https://medium.com/@O_Annenko/saas-integration-strategy-key-approaches-trends-and-challenges-98e44beab796?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/98e44beab796</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[embedded]]></category>
            <category><![CDATA[saasintegrations]]></category>
            <category><![CDATA[saas-business]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 20 May 2022 15:57:12 GMT</pubDate>
            <atom:updated>2022-06-21T12:21:02.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uCRF0o8_mPKWv0W3.jpg" /></figure><p>If you’re a SaaS company, it is impossible not to tackle the topic of integration. Whether you’re a small software business or a large, established tech enterprise with several SaaS products, every commercial conversation is highly likely to include the question like “ <em>Will I be able to sync data from your application with my CRM / ERP / Finance / Marketing … business applications?</em>“.</p><p>So, the need for SaaS connectivity is a given; it’s not something that is “nice-to-have”, it’s a “must-have” in order to attract new customers, enter new markets and, in general, to <strong>scale a SaaS business</strong>.</p><p>But when it comes to actually <strong>enabling SaaS connectivity</strong> — in other words, to SaaS integration strategy -, there are many ways to do so, as there are many things to be aware of, to consider, and to plan upfront. Hence, let’s go through the four common approaches that are available to SaaS companies, their benefits and challenges, and also what steps can make SaaS integration an easier and less costly process.</p><h3>What is SaaS integration and why do we need to address it specifically?</h3><p>Let’s start by briefly establishing the baseline of our discourse on SaaS application integration. Generally speaking, the definition of SaaS integration corresponds to that of application integration, only that in the case of the former we specify that we’re talking indeed about cloud based — the very premise of the “as a service” concept — applications. So, SaaS integration means connecting one SaaS application to another cloud based software app or, in some cases, even an enterprise on-premises system, with the purpose of enabling a consistent data exchange between them.</p><p>Jumping ahead of the topic, the very concept of “SaaS” implies that there are APIs that facilitate data exchange between a SaaS solution and other applications. And so, particularly in the early phase, SaaS businesses often assume that APIs they provide will handle all connectivity requests and their customers’ data integration needs.</p><p>While it is perfectly fine to put SaaS APIs in the center of a SaaS integration strategy, there are many factors that can make the approach “Here’s my Application Programming Interface, use it as you need” hard or even impossible to follow. As a SaaS vendor, are you sure that your documentation is complete and fully up-to-date? Does your <a href="https://www.elastic.io/6-characteristics-of-great-api/">API possess all the necessary characteristics</a> that make it an easy fit for integration? Do your customers have enough development resources to study your API-endpoints and build integrations with them?</p><p>Even if only one of these questions is answered with “no” — it will mean that a SaaS application is not easily integratable, which will have a negative impact on its adoption rate. SaaS APIs <strong>are paramount to enabling efficient data exchange</strong> but they are <strong>certainly not synonymous</strong> with “integration.”</p><h3>Why is integration important in the world of SaaS?</h3><p>Three years ago I wrote an article titled “People Don’t Want Software Products Anymore — They Want <a href="https://www.elastic.io/software-products-vs-software-ecosystems/">Software Ecosystems</a> “. The title seemed very bold to me back then — though I went with it anyway. And nowadays, it’s increasingly reflecting the current state of affairs.</p><p>What’s even more interesting, SaaS businesses started placing more <strong>strategic focus</strong> on providing integrations to their customers very early on. While I have no official statistics on my hands, I’m encountering an increasing amount of young SaaS products that pro-actively offer integrations at least with a few core systems their customers use.</p><p>This is understandable. Once a SaaS company has the core functionalities of their product up and running, so to speak, and gains solid market traction, the next steps are <strong>expanding the product’s reach, addressing new user groups, verticals and markets, and surely retaining the existing customers</strong>.</p><p>Here, <strong>SaaS integration plays a pivotal role</strong> because ultimately, it all comes down to data availability. As a SaaS customer, I’m happier if I can combine data from your cloud based application with my other data; I’m less happy if I can’t do that. If my specific integration need is critical to my job performance, productivity and / or success, I’ll look for a better solution elsewhere.</p><p>So, when we pose the question “ <strong>Why SaaS integration is important?</strong> “, we should pose it not only from the perspective of a SaaS customer, but it is equally important to pose it from the perspective of a SaaS vendor.</p><p>Providing integrations to your SaaS solution can become <strong>critical for the success of your SaaS business</strong> as this will most likely result in higher product adoption rates as well as upsell rates, lower customer churn, deeper customer satisfaction and loyalty, and higher chances to enter new markets.</p><h3>Key approaches in SaaS integration strategy</h3><p>Generally speaking, there are multiple ways to provide SaaS connectivity, all of which can be summed up as follows: Either a SaaS business opts for outsourcing this in one way or another, be it through a SaaS reseller, a technical partner or their own customers, or it decides to keep it all in-house.</p><p>Below are not all, but the <strong>most common approaches</strong> that the overwhelming majority of SaaS companies we’ve talked to employ.</p><h3>Providing APIs for SaaS product integration</h3><p>This one has already been mentioned above. A SaaS company builds a product and opens its various API-endpoints to the third-parties to use them for connecting the said product with other applications and systems. These third-parties can include: VARs (value added resellers), MSPs (Managed Service Providers), direct customers, professional services providers, independent developers, and so on.</p><p>For the SaaS business itself, this approach has a <strong>huge advantage of off-loading the integration effort</strong> somewhere else, so that the SaaS vendor can focus on its core product.</p><p>The <strong>major drawback</strong> of this approach is that the SaaS company has <strong>no control over the quality of integrations</strong>, and rest assured — if users aren’t satisfied with an integration because it breaks a lot, is limited or worse, doesn’t work at all, they will <strong>subconsciously</strong> put the blame on the product first, and only then on the service provider.</p><p>In the specific case of leaving it up to direct customers to build SaaS integrations, this approach also <strong>undermines the very concept of customer care</strong>.</p><p>Building new integrations is expensive and time consuming, but it <strong>doesn’t stop with just “building”</strong>. If you have updated your API, your customers might need to update their integrations too, so maintenance often becomes an issue, as well.</p><p>All in all, the approach of providing SaaS APIs and then washing your hands of integration will probably help a SaaS business save its own resources big time but it is <strong>the opposite of being customer-friendly</strong>, to put it mildly. There are certainly exceptions to the rule, no doubt, especially if APIs are remarkably well-documented, but they are just that — exceptions.</p><h3>Coding own native integrations manually either on-demand or preemptively</h3><p>A SaaS business knows their customers best, — after all, an entire SaaS product was built to serve their specific needs. And so it stands to reason that integrations built internally to be <strong>natively served within the product</strong> will likely satisfy the exact requirements set by the customers.</p><p>And this is largely true. We talk to many SaaS companies who have either been connecting third-party applications with their own SaaS platform in a <strong>point-to-point manner or have even built an internal system</strong> to facilitate and speed up SaaS integration development. All of them argued that due to this, they have <strong>full control over the quality</strong> and security of integrations, as well as over the <strong>customer experience</strong> and satisfaction.</p><p>Yet the common lament that these SaaS businesses voice is that at some point, this approach became unsustainable. Those with largely point-to-point integrations find it <strong>increasingly harder to maintain integrations</strong> as the number of connected systems grows. Those with home-grown integration systems grapple with <strong>maintaining and further improving the system itself</strong> so that it effectively accommodates more complex use cases such as condition-based data routing or data transformation.</p><p>Common to both cases is that integrations — their development and maintenance — consume increasingly more time and resources, <strong>to the point where the dev teams have to decide what they need to prioritize</strong> — core product development or integrations development. Scalability of integrations, or rather the lack thereof, becomes the key issue.</p><p>So, while coding SaaS integration manually has its many advantages, it is also the <strong>most time- and resource consuming approach</strong>. One that can last for only so long, until a SaaS business will be faced with the question — do I have enough dev resources to continue improving and expanding on my core product functionalities AND serve SaaS integrations my customers are asking for? Or do I have to choose either / or?</p><h3>Directing customers to an integration service such as Zapier or IFTTT</h3><p>The next wide-spread approach is to use already <strong>existing integration tools</strong> such as Zapier or IFTTT to build one’s own integration and publish it there.</p><p>This offers a tremendous advantage, since these services provide connectivity to already hundreds of software applications and systems. By publishing one’s own SaaS software on such a platform will allow a SaaS company to <strong>instantly cover a huge variety of integration use cases</strong>.</p><p>In addition to that, since a SaaS business is the one who’d develop and publish the integration, they have <strong>full control over the quality and maintenance, while saving up on their own resources</strong> by leaving it up to the end-customers to configure SaaS integration flows on their own.</p><p>It’s a win-win scenario for your SaaS integration strategy. Or rather, it seems to be one.</p><p>Up until the moment when you realize that the integration use cases are becoming <strong>far more complex for such tools to handle</strong> or you’re dealing with such a high data volume that it <strong>becomes too expensive</strong> to provide any ROI.</p><p>To add to that, having to deal with at least three parties — two SaaS businesses and the independent integration tool provider, — the <strong>end customers might find themselves confused</strong> as to whom they should approach if they experience technical issues or need additional triggers and actions. Let’s agree, being redirected from one service to another in the search for support doesn’t quite constitute good customer care.</p><h3>Building and offering native integrations through an embedded iPaaS tool</h3><p>Last but not least, there is a relatively new breed of iPaaS (integration platform as a service) offering that provides SaaS companies with <strong>configuration-based, customizable integrations</strong> and tools that can be white-labeled right into their own SaaS solution.</p><p>Such <a href="https://www.elastic.io/embedded-ipaas-types/"><strong>embedded iPaaS</strong></a> has different forms, and the embedding functionality can differ, too. Some solutions offer it as a <strong>full-featured integration hub</strong> that a SaaS business can serve to its end-users under its own brand.</p><p>Other solutions allow <strong>embedding certain modules</strong>, for example an integration flow builder, as an iframe, while yet other solutions enable the so-called <strong>“deep” embedding through their own </strong><a href="https://api.elastic.io/docs/v2/"><strong>integration management APIs</strong></a>. This way, a SaaS company can pre-build specific integration flows and publish them through this API-endpoints straight in their own SaaS product.</p><p>Regardless of the implementation, this approach to SaaS integration strategy has its advantages and disadvantages. The main drawback is probably that learning how to build connectors and integrations on an iPaaS <strong>can be a steep learning curve</strong>. Such tools come with a wide range of data transformation, routing and logic functionalities, and so it will take time to become proficient in such a complex tool. And yes — sometimes, it will be easier and cheaper to manually code integrations as opposed to deploying an iPaaS, especially if the number of integrations is fairly small and the use cases are pretty straightforward.</p><p>On the other hand, deploying an <a href="https://www.elastic.io/saas-embedded-integration/">embedded integration</a> platform often allows SaaS companies to find this <strong>fine balance between keeping control of the depth</strong>, complexity, quality and security of the customer-facing integrations, while <strong>largely standardizing and streamlining development effort</strong> to free up own dev resources. Just like with Zapier, you would build a connector for your SaaS solution only once, and then you can re-use it as often as you need to, only with iPaaS, you have the flexibility to address use cases of just about any level of complexity.</p><p>If scaling SaaS business through more integrations — faster — is your topic, we invite you to explore more about what our <a href="https://www.elastic.io/saas-embedded-integration/"><strong>embedded integration platform</strong></a><strong> </strong>can do for you in this case.</p><h3>Preparing a SaaS integration strategy</h3><p>While SaaS integration use cases are generally very different, there are still some key elements to a SaaS integration strategy that any SaaS business can and even should follow.</p><h3>Gain a deep understanding of the use case upfront</h3><p>First and foremost, before you start with any development process, get a <strong>crystal clear picture of the use case</strong> at hand. This involves not only understanding what business processes need to be automated and hence, what data objects need to be synchronized between the applications, but also <strong>learning the specifics and limitations</strong> of each one of involved SaaS APIs.</p><p>No two APIs are the same, and you must take enough time to make sense out of each one. For example, some APIs will have an extra level of security by regularly refreshing access tokens, so you’ll have to figure out upfront how you’ll build the logic of getting a new token into your integration flows. It’s often easier to implement ‘countermeasures’ from the start than troubleshoot later when all is set and done.</p><p>So, any SaaS integration strategy should start with a clear and deep use case understanding. And this leads us to the second point:</p><h3>Involve external dev support for your SaaS integration early on</h3><p>Ok, here is what I mean by that. There is no one who better knows SaaS APIs than the companies that built them, right? Considering this, your dev team might really benefit from consulting with the support team of the SaaS application they need to integrate with as part of your overall SaaS integration strategy, and here’s why.</p><p>In particular, if you’re about to build a deep and complex integration, there might be many intricacies of which you won’t be aware of until you start actually building this integration. For example, many established SaaS applications provide several ways to sync the same data objects, each of these serving its specific purpose. The respective dev team can suggest, for example, how you can sync them in the way that is most economical for you, with as few API-calls as possible.</p><p>Proactively consulting the support teams of the SaaS software applications you want to connect to early on in the process might very well spare your own development team several hours or even days of research and work.</p><p>The importance of and the need for SaaS integration are undeniable. As a SaaS business, there is simply no way you will be able to avoid it. The more interesting question is — how do you tackle this matter? Will you stick to in-house development? Or use the likes of Zapier? Or go for a full-fledged <a href="https://www.elastic.io/saas-embedded-integration/">embedded integration</a> via iPaaS?</p><p>And here is a challenging closing thought: I believe that many, many SaaS businesses go through all of these “cycles”, some faster some slower. Now the question is — in which ‘cycle’ are you now and wouldn’t it save time, money and resources to skip a step or two altogether?</p><p><em>Originally published under </em><a href="https://eio.guru/saas-integration-strategy-media"><em>SaaS Integration Strategy</em></a><em> on May 20, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98e44beab796" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Rate Limiting: How to avoid hitting rate limits in API integration]]></title>
            <link>https://medium.com/@O_Annenko/api-rate-limiting-how-to-avoid-hitting-rate-limits-in-api-integration-e3793e339dd7?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3793e339dd7</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[api-management]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 06 May 2022 13:10:37 GMT</pubDate>
            <atom:updated>2022-06-07T15:49:17.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jzpM_NraC4fodbpM.jpg" /></figure><p>When talking about <a href="https://www.elastic.io/api-integration-platform/">API integration</a>, the matter of API rate limiting is unavoidable. Researching what the rate limits of the APIs you’re going to ‘consume’ in your integrations are should be part of your overall preparation for the development of your project scope. It is also a crucial detail to know when you will be designing your integrations; rate limits will define early on what mechanism you need to implement to avoid hitting them in the first place. Hence, let’s talk in a bit more detail about API rate limiting, its techniques as well as workarounds and strategies to prevent hitting rate limits.</p><h3>What is API rate limiting?</h3><p>Let’s kick off with a short definition. Rate limiting is a mechanism to limit an API usage for a specific period of time. In other words, it is a way of limiting how many API calls can be made by its consumers at a given moment. In essence, rate limiting helps keep API traffic in check.</p><h3>Why does API rate limiting matter?</h3><p>If you’re a software developer, you might not need any explanation on how scaling works in application development. But for completeness’ sake, let’s go briefly over this concept.</p><p>It is generally best practice to divide an application into front-end, back-end and database. At the very beginning, while you’re just starting out, you might pack it all on one server. But when the load and resource consumption increase, you would probably want to move the database onto another server in order to ensure stable performance of your application. You can even move a file storage on a separate server in order to reduce the load on the main server and increase the speed.</p><p>As your application becomes even more popular and widely-used, you’ll need to scale your back-end and your database even further, which involves even more servers, for example, for the separation of calculation processes in the database or an even distribution of queries to the back-end. In short — you’ll end up with a significant number of servers.</p><p>And so, you would want to limit the rate of calls to your APIs for a few very simple reasons:</p><ul><li>Resources cost money. Too many API calls means more resource consumption, means you might get charged extra by your hosting / server provider. Or imagine your application makes use of yet another API that charges you per certain amount of calls. For these reasons alone it is wise to implement API rate limiting in order to keep your own costs in check</li><li>You wouldn’t want a single user of your application (e.g. a large enterprise with many end-users) to overwhelm your systems and resources to the point that your other customers will suffer from long responses or time-outs</li><li>As an application / APIs provider who is a reliable business partner, you want to guarantee certain SLAs. In order to meet them, you have to be able to control the traffic rate coming to your APIs from each single customer or user to ensure that it is kept within agreed levels</li><li>Last but not least, limiting the rate of API calls can offer more protection from malicious attacks such a repeated login attempts by trial and error, ultimately increase the security of your application</li></ul><p>Here are a few examples of how API rate limiting is handled by application providers:</p><p>Braze, a vendor of a comprehensive user engagement product, for example, limits rate by request type and has a pretty detailed table for that:</p><p>Intercom offers a more modest overview of its API rate limiting policy:</p><p>Box, on the other hand, also rate-limit by request type, but with fewer options than Braze in general:</p><p><em>SIDE NOTE: By the way, if you are, by any chance, an APIs developer and interested in some best practices on how to communicate about rate limiting to your API consumers, Twitter API is quoted by an overwhelming number of sources as the poster child for this type of communication. They provide a detailed description of rate limits for each of their APIs </em><a href="https://developer.twitter.com/en/docs/rate-limits"><em>in their documentation</em></a><em> (the link leads to the overview of all Twitter APIs, and you can click on each one to dive deeper into the topic). Not only that — they also provide a </em><a href="https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status"><em>dedicated API endpoint</em></a><em> for the rate limit status.</em></p><h3>A brief overview of rate limiting techniques</h3><p>We are not going to dive too deep into the specifics of various techniques for API rate limiting, but it’s worth listing at least the most popular ones, even if only for the sake of comprehensiveness.</p><h3>Token Bucket</h3><p>Imagine you have a physical bucket with a certain amount of tokens in it. For each request coming from the consumer, one token will be “taken out” of the bucket. Once there are no tokens left, any request will be denied until the bucket receives a fresh batch of tokens, which happens every specified time unit — for example, each minute.</p><h3>Leaky Bucket</h3><p>This algorithm is based on queues. The size of a queue is predetermined — for example, 5 requests per queue. The queue will accept the requests until its limit of 5 is reached. The requests that are then situated in the queue will be processed at a regular frequency, but as long as the queue is still full, each next request that would have otherwise led to its “overflowing” (i.e. “leaking”) will be rejected.</p><h3>Fixed Window</h3><p>With this algorithm, there is a fixed amount of requests allowed to be processed within a fixed time unit — say, 50 requests per minute. Each time a request is submitted, the counter for the current minute is updated and once it has reached the number of 50, each next request will be rejected until the minute is over and the next minute starts. This algorithm is probably the simplest to implement but also the riskiest to have as it doesn’t protect your system from a spike of requests, when all 50 requests are sent in the first second of a minute.</p><h3>Sliding Logs</h3><p>With the Sliding Log technique, each request from a specific consumer receives a time-stamped log, and essentially, the number of accepted requests per time unit is tracked with the help of these logs. If timestamps are older than the window time, they are simply deleted if they are not relevant any more. If the number of requests exceeds a certain rate limit, they are moved into a queue. This technique is considered to be nearly flawless — and yet it is very expensive as it requires a lot of memory to store the logs and leads to a high resource consumption because of the continuous calculations of the sum of logs.</p><h3>Sliding Window</h3><p>The Sliding Window technique is considered to be a combination of the Fixed Window and Sliding Logs algorithms. There is a counter for each specified time window — say, 5 seconds -, and every time a new request comes in, the algorithm will check the number of requests made in the last 5 seconds. Should the last 5 seconds counted back from each single second have always contained 5 requests but the 5 seconds counted back from this precise second suddenly contain 6 requests, the two latest requests will not be processed.</p><p>The image below demonstrates the difference of the Sliding Window technique to the Fixed Window one.</p><h3>How rate limiting can be an issue in API integration projects?</h3><p>Well, to put it simply, it can break your integrations. Ok, this might be a bit overdramatic, but essentially, it can lead to potentially lost data and malfunctioning integration flows, especially if there are no recovery / retry mechanisms in place. Zendesk, for example, would deactivate your webhook if there is a several-minutes outage from your side, meaning that the integration flow will just stop working.</p><p>This can become even a bigger issue if you don’t have any integration monitoring, logging and alerting system which could flag a failed integration to you, so that you can go and retry the flow manually, for example, or remedy the failed request in any other way.</p><h3>Workarounds to recover from hitting API rate limits or to prevent this from happening in the first place</h3><p>First and foremost, as a consumer of an API, you obviously must be aware of its rate limits to design your integration tasks in such a way that you avoid hitting them.</p><h3>Prevention workarounds</h3><p>For example, for our <a href="https://www.elastic.io/connectors/rest-api-integration/">REST API integration</a> component that can be used to integrate with any REST API for which there is no dedicated connector yet, we implemented the <em>Delay</em> feature, which enables you to <strong>delay the execution of the next request</strong>. For example, if a flow type is set to <em>Ordinary</em> (the other type would be <em>Real Time</em>) and is scheduled to run every 1 minute, but the delay is set to 120 seconds, the next flow execution will run only after 120 seconds instead of 1 minute.</p><p>In our case, we pair the <em>Delay</em> feature with <em>Calls Count</em> feature. The time for delay is calculated as Delay / Calls Count, where the default value of Calls Count is 1. It is possible, though, to use another value.</p><p>Another workaround to prevent hitting the API limit is to <strong>keep the connection alive</strong>. Some APIs are designed in such a way that they will count each connection as an actual request. If you have e.g. a rate limit of 10 calls per second, you can use one of these to establish a connection, keep it open for the rest of the minute, and then use the remaining 9 calls to GET or POST data you need. Admittedly, though, this workaround is <strong>much less graceful</strong> than delaying subsequent executions, and it’s generally considered to be rather a bad practice to keep a connection alive as this might lead to an unnecessary server load.</p><h3>Recovery workarounds</h3><p>Ok, so what do you do when you have already hit rate limits? In this case, there are a few options too. The recommendable option is, once your integration did hit an API’s rate limit and received the 429 Too Many Requests response, to have an implemented mechanism to <strong>retry the request</strong>. It&#39;s generally common to build-in three to five retry attempts, where <strong>each next attempt occurs after gradually increasing so-called &#39;sleeping&#39; duration</strong>. This allows the server sort of to catch up and either to reset the counter, process a queued request freeing up space, or give you a fresh batch of tokens - depending on the implemented API rate limiting technique. On our platform we actually have 10 retries, where each single retry has an exponentially increasing delay, too.</p><p>There is another workaround as well, although this one is relatively tricky to implement and just like with ‘keeping the connection alive’ trick, it is less graceful than the one described above — namely, you can <strong>increase the size of the page</strong> to be returned upon a request. Say, you set the size to 100 data objects and you noticed that your integration hits API rate limits time and again. You can go ahead and increase the page size up to 200 data objects per request and see if this solves the issue or at least reduces the frequency of alerts.</p><p>Of course, the key prerequisite here is that the API provider supports <a href="https://www.elastic.io/6-characteristics-of-great-api/"><strong>pagination</strong></a>. Without it, it will be impossible to control the size of the page. Also, you need to be really careful about increasing the page size and <strong>find just the right balance</strong> because if the size of incoming data is too large, your system might not be able to process it at all or won’t have enough time to download all data in the first place before the connection times out. And certainly, the effectiveness or validity of this workaround depends on the character of your integration.</p><p><em>Originally published under </em><a href="https://eio.guru/saas-integration-strategy-li"><em>API Rate Limiting</em></a><em> on May 6, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3793e339dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Webhook security: Four risk scenarios and how to secure webhooks]]></title>
            <link>https://medium.com/@O_Annenko/webhook-security-four-risk-scenarios-and-how-to-secure-webhooks-f33eb82ec989?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f33eb82ec989</guid>
            <category><![CDATA[event-driven-systems]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[application-integration]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 29 Apr 2022 16:57:23 GMT</pubDate>
            <atom:updated>2022-05-11T13:23:48.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g7ONER7iUiCDlU4Q.jpg" /></figure><p>A few weeks ago we talked about <a href="https://www.elastic.io/webhook-integration-overview/">webhooks integration</a> and briefly mentioned webhook security as one of the key points to consider in this context. I feel like today we can dive deeper into this topic.</p><p>Webhooks are generally more vulnerable to attacks and less protected from them than APIs because webhooks make use of a publicly available URL and apart from SSL — that is, IF you use the HTTPS connection ( <em>which you probably should</em>) — there is not much built-in encryption in the whole ‘ <em>send message — receive message</em> ‘ scenario.</p><p>Hence when using webhooks in your integration scenarios — or really, in any scenario — webhook security is an important topic to review. And while there is no “one-size-fits-all” strategy here, below are some of the methods that are considered pretty much standard nowadays.</p><h3>Prevent tampering attacks on requests with HMAC</h3><p>One of the most popular ways to ensure webhook security is using HMAC — or, hash-based message authentication codes. In this scenario, the publisher and the subscriber share the same secret to ensure that the message sent / received is genuine.</p><p>The way this mechanism works is, in simple terms, having the content of a webhook payload and the secret key that the parties agreed on strung together and then encrypted using a cryptographic hash function such as MD5 or SHA-1. <em>Of course, both systems need to “agree” upfront on the algorithm, i.e. the hash function, they’ll both use for the message verification</em>.</p><p>The signature that results from this encryption is included in the request of the sending application (the ‘publisher’), i.e. in the webhook header. Ideally, the signature should contain a <strong>timestamp</strong>, too (more on that later). The receiving application (the ‘subscriber’) would then attempt to re-create the signature by performing its own encryption of the body with the shared secret upon the receipt of the request ( <em>remember — both parties agreed on the hash function, so the receiving application will use the same algorithm</em>). If the resulting signature matches the one from the publisher, the message is concluded as genuine.</p><p>The HMAC approach is one of the most popular ones to protect your webhooks against <strong>tampering attacks</strong> which occur when an attacker forges a request to the endpoint defined in the webhook to make it look like it came from the original publisher — say, Salesforce or NetSuite — to send falsified data. Since an application that is configured to get a payload would accept incoming HTTP(S) requests from practically anybody, merely relying on the SSL encryption is not a guarantee of the authenticity of the sending application. It only protects from a message interception through some third party.</p><p><em>SIDE NOTE: Of course, in theory, one could verify the authenticity of the sender and the receiver via HTTPS using both client and server certificates, but in practice, it can be quite challenging to set up and is hence rarely practiced.</em></p><p>HMAC ensures that both the sender and the receiver are verified to each other, since only the authentic publisher (in our example Salesforce or NetSuite) would know the secret with which the HMAC in question was generated. Even if the request has been intercepted and a malicious sender is trying to transfer falsified data to the subscriber, only the body of the request would be susceptible to tampering; the false sender would never be able to re-create the correct HMAC since the shared secret is not part of the actual request.</p><p><em>ANOTHER SIDE NOTE: To ensure that the subscriber receives a request that has definitely NOT been tampered with, you can go ahead and white-list a number of IP addresses from which the subscriber is supposed to receive a request. This approach is, however, rather inconvenient for the publisher (i.e. for the sending application) because they will be constrained in the number of IPs they can use themselves. Plus it’s not a bullet-proof solution as there is still a small chance that an attacker can get control of an IP, or at least part of it.</em></p><h3>Use timestamps to protect the receiver against replay attacks</h3><p>This being said, the HMAC approach will not protect against the so-called <strong>replay attacks</strong>. This is because in a replay attack, an attacker will intercept the request and re-send it in its entirety multiple times to the subscriber. Since the body and the signature have not been tampered with at all, the subscriber will accept this request just fine again and again.</p><p>You might think — the request will be simply sent several times instead of once, so what? If it doesn’t contain false data, what does it matter? Well, it depends. Maybe an invoice will be generated several times, which is harmless, I’d say. Or, maybe a charge will be issued once a customer record is created, resulting in multiple charges all sent to the attacker. And that is a less fun scenario.</p><p>To protect your webhooks against replay attacks, the standard practice is to <strong>include a timestamp in the signature</strong>, hashed together with the secret key and the request body. This approach offers a solid protection because if the signature is left in its entirety but the timestamp is too old, the receiving application can safely reject the request. And the timestamp cannot be manipulated without making the signature completely invalid.</p><p>Even in the case when the subscriber timed out for some reason and the publisher has to retry the event delivery, you can configure the latter to generate a new signature and a new timestamp for each new attempt (this is what <a href="https://apidocs.verkada.com/reference/securing-webhooks">Verkada</a> for example does).</p><p><em>SIDE NOTE: Another solution to protect yourself from replay attacks would be to create a mechanism for storing the IDs of the webhook events that have already been processed be the receiving application. However, this would require an extra setup and maintenance of such events database, and can be quite tricky to implement. Also, including a timestamp with the signature just feels like a more elegant way to tackle this problem.</em></p><h3>Implement mutual TLS to protect sender from malicious destinations</h3><p>Just like webhooks can be tampered with to make it look like an event has been sent from a legitimate publisher, webhooks can be also intercepted and sent to a wrong destination — or several wrong destinations, for that matter.</p><p>You might already know what TLS, which stands for Transport Layer Security, is but let’s recap it real briefly. TLS is a cryptographic protocol which ensures a secure end-to-end channel between the client and the server to share data. In other words, TLS is basically the successor to SSL. The server sends a certificate to the client, which in turn validates it against the number of its approved and trusted root certificates. This way, the client (the receiving application) can validate the identity of the server (the sending application) exactly.</p><p>But you can already see that this is a one-way validation — the recipient validates the sender. But for webhooks, this is not enough because ideally, the sender will also need to make sure that it is about to send possibly sensitive data to the correct recipient.</p><p>Mutual TLS allows to perform this validation both ways. In this scenario, the server is configured in such a way that it not only sends a certificate to the client but also requests the client to respond with its own certificate, which the server then validates against its own list of trusted root certificates.</p><p>As a result, should webhooks be intercepted and sent over to a wrong destination, the authentication will fail because the actual receiving application (the client) will never get a request from the sender (the webhook provider) to send its own certificate back to it for completing the validation process.</p><p><em>SIDE NOTE: In order to implement mutual TLS, the server must be configured accordingly. However, the configuration steps vary depending on what server exactly you use. The DocuSign documentation covers on </em><a href="https://developers.docusign.com/platform/webhooks/mutual-tls/"><em>this page</em></a><em> for example the configuration for Apache2, F5, and NGINX.</em></p><h3>Implement authentication token or basic auth to verify sender</h3><p>We’ve already mentioned above that, in case of request interception by an attacker, HMAC can ensure the identity of the sender, in addition to verifying the message. But what if there was no interception to begin with and the sender is the one sending malicious or corrupt requests to attack your application’s database?</p><p>The API endpoint where webhook sends its events too is supposed to be publicly available — this is kinda one of the prerequisites for <a href="https://www.elastic.io/webhook-integration-overview/">webhook integration</a>. This also means — I have already mentioned it somewhere above — that ANYone can send events / data to this endpoint. So, ideally, we would like to make sure for the provider of the API endpoint that it receives only legitimate payload.</p><p>For this purpose, you can add an authentication token (some call it also verification token) in a header of the webhook request. This token will be then verified by the receiving end and if it’s a match, the request is accepted for further processing.</p><p>Somewhat similar strategy is followed by the username / password approach, also known as <strong>Basic Authentication</strong> approach. In this scenario, the endpoint of the target URL is associated with a unique username and password combination. To authenticate the webhook, you would need to enter username and password for this endpoint upon the webhook setup. When the webhook payload is sent, the fields for these values are included in the header of your HTTP request, and the receiving application will verify if these are the right match.</p><p>Yet another way to verify the sender is for the receiving end to actually know the IP address of the webhook provider and maybe even go a step further and white-list it. But as I have already mentioned above, this approach will be quite inconvenient for the sender if for some reason it needs a certain level of freedom with IPs allocation.</p><p><em>SIDE NOTE: While having the advantage of being relatively simple to set up, the token approach provides limited security because the token itself is delivered in plain text. Should an attacker get a hold of the token, they will have it very easy to impersonate the anticipated sender and send a compromised webhook request. The username / password can also appear as plain text in a URL — it depends on the webhook provider — , so be aware of that and make sure that you’re at least using HTTPS to enable credentials encryption via SSL.</em></p><h3>Deliver just the bare minimum with skinny payloads</h3><p>All these methods covered above can provide a really good, solid protection to your webhooks and / or endpoints. But what if you’re dealing with REALLY sensitive data and you cannot allow even the slightest chance of security breach?</p><p>Then the so-called <strong>skinny payload</strong> might be just the right strategy. Technically, it’s not a method to <em>secure</em> a webhook or the end-to-end communication channel between the sender and the receiver. Rather, it is a <em>workaround to protect</em> the sensitive data as a whole.</p><p>Instead of sending via a webhook the entire event to the receiver’s API endpoint, you would merely let the receiving application know that there is an important update for an event it has been waiting for, and in order to obtain the entire event data, the receiver needs to make a proper, authenticated API call. The term “skinny payload” means basically that you reduce the payload information down to the bare minimum and let the webhook take up the role of a simple notification.</p><p><em>If webhooks are the topic you’re on right now, you might find this interesting: <br></em><a href="https://www.elastic.io/webhook-integration-overview/"><em>Webhook integrations | How to use webhooks in your integration flows</em></a></p><h3>How to secure webhooks — Let’s recap the options</h3><p>When thinking about webhook security, there are several approaches and strategies to implement. You can:</p><ul><li>Verify the publisher / source (i.e. the sending application)</li><li>Verify the subscriber / consumer (i.e. the receiving application)</li><li>Verify the message itself</li></ul><p>Implementing the authentication token or basic authentication will definitely help you with the first point on the list. For subscriber verification, you can make use of the mutual TLS. Last but not least — to verify the message itself and protect both the sender and the receiver, you can implement HMAC together with timestamps.</p><p>In fact, HMAC is really considered to be the preferred strategy. If you peruse the documentation on webhooks from various popular SaaS products such as DocuSign or Stripe, most of them mention that they recommend HMAC over any other method they provide.</p><p>But regardless of the option, here are some best practices to follow when working with webhooks:</p><ul><li>If you’re a webhook provider, prepare good documentation, libraries and code examples for other developers to help them secure a webhook as quickly and easily as possible</li><li>I don’t think it really needs to be mentioned but still — no really sensitive information like passwords, bank account data or medical records should be sent using webhooks. If real-time, event-driven is your topic here, use rather a skinny payload</li><li>Tokens, timestamps, secrets, etc. can be compromised no matter how secure you made them. In order to ensure proper security level, provide a way to re-generate these should they get exposed. This way, you can at least ensure that no subsequent requests are affected by the security breach.</li></ul><p><em>Originally published under the title “</em><a href="https://eio.guru/webhook-security-media"><em>Webhooks security</em></a><em>” on April 29, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f33eb82ec989" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embedded iPaaS: Implementation types, features, pros and cons]]></title>
            <link>https://medium.com/@O_Annenko/embedded-ipaas-implementation-types-features-pros-and-cons-54385ccc41b5?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/54385ccc41b5</guid>
            <category><![CDATA[saas-business]]></category>
            <category><![CDATA[saasintegrations]]></category>
            <category><![CDATA[saas-growth]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[saas-ecosystem]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 22 Apr 2022 12:53:47 GMT</pubDate>
            <atom:updated>2022-06-01T13:07:59.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QsVnJmAzvqLOHteJ.jpg" /></figure><p>The significance of embedded iPaaS has significantly risen in the past months. This can be easily seen by reviewing the search volume for the keyword “embedded iPaaS” — if in October 2019, for example, there were only a handful of queries for this term, by the first quarter of 2022, the search volume has increased by 1500%. Yes, you’re reading it right, this is not a typo — by one thousand five hundred percent.</p><p>Such a tremendous increase in people searching for embedded iPaaS can be attributed to two forces joint together: SaaS vendors realizing they can hardly cope any longer with an increasing demand for integrations from their customers, and <a href="https://www.elastic.io/seven-major-players-enterprise-integration-platform/">iPaaS vendors</a> realizing there is a largely untapped market of great potential for business growth and new customer segment.</p><p>Let’s begin, though, with a brief overview of what exactly is meant by ‘embedded iPaaS’ and why it is gaining in attention from SaaS vendors.</p><h3>What is embedded iPaaS?</h3><p>Well, an (extremely) short answer to this question is — it’s a third-party <a href="https://www.elastic.io/">iPaaS</a> solution that is part of another software solution but is not directly visible or recognizable as third-party element (I assume you already know what ‘iPaaS’ is — that is integration platform as a service -, hence we’re going to use this acronym throughout the text).</p><p>While the term ‘embedded iPaaS’ may seem new, the actual concept of ISV vendors embedding iPaaS integration services into their own software solutions was evaluated by Gartner (who else?) as early as in 2012 when they published a <a href="https://www.gartner.com/doc/2137115">paper</a> titled “Benefits and Drawbacks of iPaaS as an ‘Embedded’ Feature of Cloud Services” (paywall).</p><p>In the following years, the adoption of iPaaS by SaaS providers for embedding purposes was slowly increasing until — boom — there was an explosion of integration marketplaces and plug-and-play integration solutions provided by SaaS vendors, and requests for embedded or white-label iPaaS from SaaS vendors — something we, as an iPaaS provider, experienced first-hand.</p><p>This leads us to the next question:</p><h3>Why do you need an embedded iPaaS?</h3><p>That is, if you’re a SaaS vendor. Back in 2019, I wrote an article on why customers are looking for <a href="https://www.elastic.io/software-products-vs-software-ecosystems/">software ecosystems</a> rather than software products. While this claim is intentionally provocative, it’s not far-fetched from reality.</p><p>Integrations with other business software solutions, cloud based but also on-premises, play an increasingly pivotal role in any B2B SaaS product offering. The messages that we often get go somewhere along the following lines:</p><ul><li>“At the moment we’re servicing about X number of service providers for which we build custom integrations and we’re investigating other options to make integrations work”</li><li>“We want to replace our existing integration capabilities of our software with an iPaaS solution”</li><li>“We provide a SaaS solution for XY, and we are looking for the integration tools that can sync data from any other 3rd party software to our solution”</li><li>“We are looking for a way to offer integrations within our own application”</li></ul><p>The scenarios, industries and requirements vary, but one thing is common to all such messages — they come from SaaS vendors who, for some reason, want to address their own customers’ integration needs in a more efficient way.</p><p>The reasons for that vary, too. The most common ones we’ve encountered so far are:</p><ul><li>Desire to create a more compelling offering by lifting the burden of developing integrations off of their customers</li><li>To decrease the workload of own IT teams with respect to the development of custom integrations</li><li>To modernize already existing integration capabilities by separating integration logic from the core business logic</li></ul><p>But whatever the reason is, it is clear that SaaS vendors are increasingly searching for embedded iPaaS solutions because the way how integrations have been handled in the past became unsustainable, and now hinder the product growth and adoption speed.</p><h3>Types of embedded iPaaS</h3><p>Now that we’ve established that it’s not some modern trend that’s going to abide soon, let’s go over the currently available options for SaaS vendors to leverage the capabilities of iPaaS to their own products’ advantage. In this context, I’m going to apply the term “embedded iPaaS” a bit more loosely as some of my industry colleagues might do.</p><h3>White-label iPaaS</h3><p>Also known as OEM iPaaS, although this particular name is far less used in this context, this type of embedded iPaaS represents a product that is shipped in its entirety to the SaaS vendor, who on his side, adjusts the UI / UX to match their own SaaS solution.</p><p>The key characteristics of a white-label iPaaS should include:</p><ul><li>Multitenancy</li><li>High scalability and low latency</li><li>Integration management API</li></ul><h4>Multitenancy</h4><p>Any B2B SaaS vendor knows this concept first-hand, since it offers its product to multiple customer companies. With white-label iPaaS, there is even an additional layer of tenancy, since it serves the platform to multiple SaaS vendors who, in turn, serve it to their customer organizations.</p><h4>High scalability and low latency</h4><p>This criterion is important for any iPaaS offering, but with white-label iPaaS, the importance is double if not three-fold, because the number of end-users from each SaaS vendor using the platform can go into hundreds if not thousands.</p><h4>Integration management API</h4><p>Just like any iPaaS leverages the power of APIs to build connections to various applications and services, the platform itself should ideally provide API endpoints for various events such as ‘create a contract’, ‘start a flow’, or ‘update a pub/sub topic’ — because you might not know at the beginning of the project how you end up integrating the iPaaS into your SaaS product.</p><p>Some other desirable characteristics include documentation that can be as easily white-labeled as the platform itself, and microservices architecture in case when you as a SaaS vendor would like to embed the platform into your application on a very deep level.</p><p>The <strong>purpose</strong> of adopting white-label iPaaS for SaaS vendors is to not only build and re-use integrations that their customers want faster as compared to doing this in-house, but also to enable the customers to do the integration work themselves should they wish so — all under the “umbrella” of one’s own SaaS brand and one’s own URL.</p><p>The <strong>main advantage</strong> of this approach is that it decreases the development burden from all IT teams involved. There is a <strong>disadvantage</strong>, though, too — such a solution addresses the needs of the clients’ IT but not its business users. Configuring an integration flow, even when most of its steps and elements are pre-built (e.g. connectors for business applications) might require at least some level of technical knowledge that regular business users are unlikely to have.</p><p>Curious to learn more about how <strong>other SaaS providers</strong> use iPaaS to <strong>extend integrations capabilities</strong> of their products? <br>In <a href="https://eio.guru/embedded-ipaas-blog-cta">this case study</a>, we cover three stories — so you’ll get three for one 😉 <br><a href="https://eio.guru/embedded-ipaas-blog-cta"><strong>Download the embedded iPaaS collective case study -&gt;</strong></a></p><h3>Self-service integration marketplace capabilities</h3><p>This type of embedded iPaaS works rather in the background while the end users will get to see one-click, pre-built solutions for integration flows and scenarios they are likely to require. Think Zapier-like recipes only offered within your own SaaS product.</p><p>The key characteristics of embedded integration marketplace offering should include:</p><ul><li>Multitenancy</li><li>Recipes functionality</li><li>Marketplace functionality</li></ul><h4>Multitenancy</h4><p>Just like with the white-label iPaaS type, the provider of the platform for integration marketplaces will address multiple SaaS vendors who, in turn, will address their own end-users. Hence multitenancy is in this case is an equally critical feature.</p><h4>Recipes functionality</h4><p>This might be called differently, but the idea remains the same: You should be able to build fully-functional solutions for popular / requested integration scenarios that can be activated by the end user with just a few clicks and minimal technical knowledge or input. Ideally, there is an API endpoint that facilitates recipes management and implementation on your side.</p><h4>Marketplace functionality</h4><p>Just like retailers would use a marketplace software to create and manage online storefronts, the same kind of experience should be provided by the iPaaS vendor for its SaaS customers too. So that you as a SaaS vendor can choose yourself which integrations you’d like to include for your end-users, as well as have the freedom to group them into logical categories, specify logos and icons, integration descriptions, titles, and more.</p><p>It goes without saying that the UI / UX of such self-service integration marketplace should also be easily modifiable to reflect a respective SaaS brand.</p><p>The <strong>purpose</strong> of adopting this type of integration offering is for SaaS vendors to offer its customers a fully pre-configured, “sit-back-and-relax” solution to their integration needs.</p><p>The <strong>advantage</strong> is — there is minimal effort from the end-users’ side to activate and use the required integrations, hence it is ideal for addressing business users.</p><p>The <strong>drawback</strong> is, though, that your own development team will get to do all the work regarding recipe creation themselves. In addition to that, such pre-built scenarios will be able to address only the common integration needs and scenarios; more complex ones will require custom development after all. However, the usage of iPaaS itself will reduce the overall development effort considerably, so it is still a much better option than in-house development and maintenance of each single integration.</p><h3>Which type is right for me?</h3><p>If only there were a crystal ball to look into and know the answer. Really, it depends on so many factors to be counted in.</p><ul><li>Is your SaaS product of an “extremely-easy-to-use” or rather a “quite-complex” type?</li><li>What integration scenarios do you expect to be most common: very straightforward, “one-off” data or file exchange or something that involves more sophisticated business logic?</li><li>Who do you want to build and facilitate integrations for: B2C consumers, your B2B customers’ business users or rather their IT teams?</li><li>Do you want to allow the users of your integrations more flexibility and customization or is this not necessary?</li></ul><p>These are only a few questions you might need to answer to determine which type of <a href="https://www.elastic.io/saas-embedded-integration/">embedded integration</a> solution is suitable for you. You might also change your strategy mid-way: Say, you started testing a platform with an idea to offer its UI to your end-customers, realized that it might be too technical for them but loved how flexible and powerful the tool is to speed up your own development of integrations with third-parties and custom APIs (true story, by the way).</p><p>Whatever your requirements and plans are, start by looking into the capabilities of the embedded iPaaS providers you’ve selected for testing. The lists of characteristics above should give you an idea of whether a platform meets the standards at least from the perspective of its technical capabilities.</p><p><em>Originally published under </em><a href="https://eio.guru/embedded-ipaas-types-media"><em>Embedded iPaaS</em></a><em> on April 22, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54385ccc41b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating event-based architecture on top of existing API ecosystem]]></title>
            <link>https://medium.com/@O_Annenko/creating-event-based-architecture-on-top-of-existing-api-ecosystem-6afafb639ac6?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6afafb639ac6</guid>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[event-driven-systems]]></category>
            <category><![CDATA[event-based-architecture]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Thu, 14 Apr 2022 13:11:32 GMT</pubDate>
            <atom:updated>2022-05-24T12:43:15.125Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tOh65gTWfv1EB8GZ.jpg" /><figcaption>Image by @xresch from Pixabay</figcaption></figure><p>Is it possible to create an event-based architecture on top of the existing API ecosystem?</p><p>We are all creatures of convenience. Just think, which package delivery company you would give a favorable review: the one that, though providing package tracking, simply informs you on what day and within what time frame you’re supposed to expect your delivery to arrive (and even that ends up incorrect due to, say, traffic delays), or the one that actively notifies you that your package is now just ‘this many’ stops away from you?</p><p>The demand for real-time applications and services is undoubtedly increasing, and if your business app or service is customer-oriented, be aware that customers will probably expect a more immediate, real-time experience. And with that, the topic of event-driven architecture increasingly gains strategic importance and hence interest from companies of all sizes.</p><p>Today, it is not my intention to describe step-by-step how to build an event-based architecture because frankly, there are too many use cases to consider and too many supporting technologies to mention, to be able to pack it in one article. There are also too many variables to account for: your existing IT infrastructure, your personal preferences when it comes to technology stacks, and your available resources are just some of the factors that can direct this conversation in various different ways.</p><p>Today, my intention is to review <strong>how it is possible to facilitate the creation of an event-based architecture on top of the already existing API landscape</strong>. But let’s start with the ‘why’ first — why the terms ‘event-based’ and ‘event-driven’ seem to be on (almost) everyone’s lips nowadays.</p><h3>The beauty of real-time applications and the importance of event-based architecture</h3><p>As for me personally, I don’t need to be bombarded with notifications all the time. In fact, for most of my phone apps, I switched this function off. However, there are some situations where I would appreciate a real-time or at least near-real time update. Package delivery is one of them — I prefer to intercept it before the delivery person rings the doorbell, which throws one of my dogs into a fit of hysterical barking. And I would love to have an app that would ping me when my package is one stop away from me (as opposed to me checking the status every ten minutes or so).</p><p>Or imagine a check-in app that would send you real-time push notifications when your gate has been changed — might be highly useful if this change happens just half an hour prior to your flight departure and you’re already running late because of a traffic jam.</p><p>It’s not about this kind of information being made available per se — because oftentimes it is -, but rather about its availability to the customer in real-time and pro-actively served. This is what constitutes great customer experience everyone is talking about nowadays. It might not seem like a game-changer, but this very small differentiator can become the reason for you choosing one carrier or airline over the others.</p><p>In many cases nowadays, data exchange between applications is enabled through APIs, oftentimes REST. One application has an update — e.g. a package has been shipped or a gate for a specific flight has been changed — and another application receives this update. The issue is that RESTful applications and services are essentially <strong>polling-based</strong>. This means they ask for data at certain time intervals and even then, sometimes only when requested to do so ( <em>think how often we refresh this or that mobile application to get the most recent data</em>).</p><p>In order to deliver this kind of great customer experience we’ve mentioned earlier and serve information pro-actively and in real-time, we <strong>need a different mechanism</strong> where business software applications, services and systems can be triggered immediately in response to a particular event. This is essentially what enabling event-based architecture is about.</p><h3>Components you need to build an event-based architecture</h3><p>There is no one way to build an event-driven architecture, and there are multiple variations, protocols, and methods that can be implemented for this purpose. Essentially, though, it consists of three <strong>decoupled</strong> components — an <em>event producer</em>, an <em>event consumer</em>, and an <em>event broker</em>. Decoupling is what makes it possible to process events <strong>asynchronously</strong> — this ensures that the event producer and the event consumer continue operating independently from each other (as opposed to synchronous communication that “blocks” operations until a request from one system receives a request from another).</p><h3>Event producer</h3><p>Event producer is essentially the sender of an event. If we take our examples from above, a shipment tracking system or a gate management system can be taken as event producer examples.</p><h3>Event consumer</h3><p>Event consumer is, logically, the recipient of the event. It can be an app on your phone or another business application in a company’s IT ecosystem that checks or listens for the occurrence of a specific event in order to respond to it accordingly — for example, with a push notification on your phone or by triggering yet another process. Usually, this is enabled through event consumers being <strong>subscribed</strong> to these specific events.</p><h3>Event broker</h3><p>Now, event broker is what makes up the gist of event-based architecture and enables the decoupling of the event producer and event consumer. The event broker accepts events from the former, stores them long-term, and then sends these to the latter. Depending on the number of event consumers, event brokers are also responsible for routing events to the right consumer. The messaging pattern that is mostly often used in this context is <a href="https://www.elastic.io/synchronous-vs-asynchronous-integration/">pub/sub</a>.</p><p>This asynchronous pattern ensures that no messages get lost. Even if one or more event consumers (i.e. subscribers) are unavailable for some reason at a given moment, events will be queued in the exact order in which they occurred. Once the event consumer reconnects, it will just consume those queued messages and resume its previous activity.</p><h3>My applications are REST. Can I still build event-based architecture?</h3><p>Most of the time when you search for information on how to create an event-driven architecture, you will find the terms ‘streaming APIs’ and ‘event-driven APIs’. These are, as you might already know or at least have guessed, a new breed of APIs that enable event-driven communication.</p><p>The reality is, however, that most software application vendors do not provide these types of APIs; either because there are other business-critical priorities or they simply don’t have the required resources. This is where <strong>augmenting existing APIs to make them fit for an event-based architecture</strong> may become interesting. When talking about augmenting REST APIs we have already been working with, there are several strategies we can pursue depending on the role of these APIs in the event-driven schema: are these APIs event producers or event consumers?</p><p><strong>When REST APIs are event producers</strong>, the workaround is usually quite straightforward; we just need an event broker that supports various APIs (including REST) and protocols — in other words, the one that helps translate REST to message protocols such as AMQP or MQTT.</p><p><strong>When REST APIs are event consumers</strong>, the workaround is likely to be more complex because we need to find mechanisms to set up topical subscriptions to existing REST APIs or the event broker, and teach them how to be [more] event-based in general. This can usually be achieved with an event-driven layer consisting of <a href="https://www.elastic.io/webhook-integration-overview/">webhooks</a>, pub/sub services, and server-sent events.</p><p>To sum it up — yes. If the business software applications and systems that are implemented in your company provide only REST APIs, you can still build an event-based architecture around them. While we wouldn’t encourage overcomplicating things, sometimes (or rather, more often than not) we have to work with what we have, and <strong>augmenting existing API</strong> is a solid workaround if a native solution to the problem is not on the table right now. In this context, I’d like to leave here a link to a fascinating article called “ <a href="https://sookocheff.com/post/api/marrying-restful-http-with-asynchronous-design/">Marrying RESTful HTTP with Asynchronous and Event-Driven Services</a> “.</p><p>A side note: Even though streaming and event-driven APIs are getting so much attention, REST APIs are not going away anytime soon. The use cases that require the added complexity of real-time asynchronous communication through streaming / event-driven APIs and event brokers are not as numerous as the number of use cases for REST APIs. From this perspective, we are going to see more hybrid architectures that incorporate both REST and streaming / event-driven APIs.</p><h3>Event-driven approach in application integration</h3><p>The event-based architecture is useful, by the way, not only for providing great customer experience through customer-facing applications and services. It can also be extremely <strong>useful in building integration between multiple business software applications</strong> — if not for the sake of real-time data synchronization then at least for the sake of considerable resource savings.</p><p>One of the largest privately owned breweries in Germany wanted to build a robust 360-degree customer view and streamline its marketing efforts across all channels, aiming for personalized messaging and ultimately outstanding customer care and satisfaction. In the first phase of this project, they focused on enabling data exchange between online points of contacts, their Salesforce CRM and the customer data &amp; experience platform from Exponea.</p><p>To ensure seamless data flow and exchange between various systems of records, the company used <a href="https://www.elastic.io/connectors/webhook-integration/">Webhook</a> and <a href="https://www.elastic.io/connectors/amqp-integration/">AMQP</a> connectors to <strong>trigger a lot of integration flows</strong> as long as the applications and systems in question support the ability to push data via webhooks or onto an event-bus. And with the help of the <a href="https://www.elastic.io/connectors/pub-sub-integration/">PubSub</a> connector, they kept each integration flow as small as possible, thus <strong>implementing a modular flow architecture</strong>. Since the requirement was to synchronize data not merely between two but rather between three to five systems, the PubSub connector allowed it to <strong>break these flows into small chunks</strong> and dynamically propagate updates between them.</p><p><em>Originally published under the title “</em><a href="https://eio.guru/event-based-architecture-rest-media"><em>Event-based Architecture</em></a><em>” on April 14, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6afafb639ac6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ERP integration guide | Common scenarios, challenges, methods]]></title>
            <link>https://medium.com/@O_Annenko/erp-integration-guide-common-scenarios-challenges-methods-d60887c3684?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d60887c3684</guid>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[erp-solutions]]></category>
            <category><![CDATA[erp]]></category>
            <category><![CDATA[erp-software]]></category>
            <category><![CDATA[application-integration]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 08 Apr 2022 13:42:22 GMT</pubDate>
            <atom:updated>2022-05-17T15:40:06.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*anQxiPCq9NB312vO.jpg" /></figure><p>The phrase “We are only as strong as we are united, as weak as we are divided”, though coming from the fictional character of Albus Dumbledore in the Harry Potter saga, can also perfectly illustrate the importance of ERP integration to companies. An ERP system is often considered to be the backbone of an enterprise whether it is an eCommerce, supply chain, manufacturing or healthcare business. But to unfold the full potential of their ERP system, companies will need to integrate it with other applications to ensure a consistent data flow, provide access to accurate information across the entire company, and automate enterprise business processes.</p><p>So, let’s dive into the topic of why we should integrate ERP with other enterprise business systems in the first place, what the common scenarios are and what advantages they bring, and review the 3 current popular methods for ERP system integrations.</p><h3>What is ERP and why it alone is not enough</h3><p>ERP stands for Enterprise Resource Planning — and it’s a type of business software that helps companies manage core operations, processes and resources. Due to its numerous modules and complexity, ERP is often considered to be the main system of record, collecting data from multiple parts of the company such as accounting, HR, sales, manufacturing, ecommerce, and many more.</p><p>As a stand-alone solution, ERP can cover several business functions, with the most common being supply chain, human resources, customer relationships, finance, commerce, and manufacturing. It is, however, rather uncommon for organizations to use ERP alone for everything mentioned above. Oftentimes, ERP supplementary modules such as CRM or HCM cover quite basic processes such as payroll, personal record keeping, or contact management. They can serve well while the business is relatively small, but with the business growth come more complex needs and requirements such as sophisticated, in-depth customer behavior analytics, support for mobile devices, or top talent retention and onboarding of new hires.</p><p>This means that sooner or later, businesses reach the functional limits of some of the ERP’s embedded modules and start looking around for full-fledged solutions that can fill the gaps. In its turn, this necessitates connecting ERP to other applications and data sources, which leads us to the next section — ERP integration.</p><h3>What is the purpose of ERP integration</h3><p>Generally speaking, ERP system integration means connecting ERP software and synchronizing data with other enterprise business applications and software systems. Examples include customer relationship management (CRM) system, human capital management (HCM), eCommerce platform such as Shopify or Magento, management information system (MIS), learning management system (LMS), — scenarios and options abound.</p><p>The primary purpose of ERP integration is, therefore, to ensure that information is shared between several systems continuously, and stays up-to-date and relevant. This guarantees the efficiency and good performance of company operations and processes, as well as delivers a holistic view of all mission-critical data.</p><h3>3 Key benefits of ERP integration</h3><p>When companies integrate ERP with other systems, it allows them to ensure data integrity and use their ERP software as a true source of truth that is shared across the entire organization. This facilitates well-informed decision making and thorough business analysis. But the benefits of ERP integration are far more wide-ranging than that.</p><h3>Costs reduction through less errors and higher process automation</h3><p>When continuous data exchange between ERP and other applications is ensured, it significantly reduces the need for manual data entry — the biggest challenge that teams face across various departments.</p><p>For instance, the survey by the app development platform TrackVia found that <a href="https://industrytoday.com/pain-points-of-manual-data/">47% of managers and executives</a> in construction and engineering still use manual data entry methods to capture critical project and site data. According to a <a href="https://blog.hubspot.com/marketing/state-of-inbound-stats">study from HubSpot</a>, 23% of sales people see manual data entry as their biggest challenge in using a CRM software. A survey <a href="https://1.reutersevents.com/LP=29639">by Reuters</a> revealed that 55% of executives in the supply chain still make planning decisions using manual processes; 28% even claimed that their whole decision-making process has no system support.</p><p>The problem with manual data entry is not only that it is time-consuming and inefficient — just imagine spending hours entering or updating customer or product data while you could have been doing something more productive or useful during this time -, it’s also extremely error-prone. Slower lead routing that may lead to lost sales, wrong product prices that may lead to lower revenue, delays in product supplies that might lead to missed production deadlines — all that costs a business money.</p><p>Integrating ERP with other applications enables advanced automation of critical business processes such as order processing, customer management, accounting, inventory updates, purchase orders, and more. For example, once a sales order is placed through a company’s commerce platform, order details and customer information is transferred automatically to ERP, triggering order creation and fulfillment processes. No manual data entry, no accidental human errors involved.</p><h3>Upgrade for legacy ERP systems</h3><p>Remarkably, when it comes to ERP systems, the on-premises solutions are still very much prevailing. Recent study by IDG Research called <a href="https://www.oracle.com/a/ocom/docs/applications/erp/idg-erp-studie-2021-de.pdf?topic=Accelerate+an+Automated+Close%3Flb-mode%3Doverlay">Cloud-ERP Study 2021</a> (PDF, in German) showed that 45% of respondents run their ERP solution still on local servers, with further 22% pursuing the hybrid model, where the current ERP core system is extended through specific cloud functionalities.</p><p>Another recent study by <a href="https://cdn2.hubspot.net/hubfs/4439340/Panorama-Consulting-Group-The-2020-ERP-Report.pdf">Panorama Consulting Group</a> (PDF) found that 35% of respondents still have home-grown, legacy ERP systems.</p><p>The problem with legacy solutions, though, is that they often lack many functionalities that are nowadays business-critical to gain a competitive advantage, improve operations and increase employees’ productivity, such as advanced analytics, real-time data insights, transparent data flow, and immediate data availability.</p><p>It might seem plausible to just recommend companies switch to a cloud ERP or even better, a <a href="https://www.elastic.io/implementing-postmodern-erp-strategy/">postmodern ERP</a> solution, but such switch can take years. While legacy systems might have many flaws from today’s point of view, they have one great advantage — they allow an extremely <a href="https://www.mdpi.com/2071-1050/12/16/6426">high level of customization</a> to meet all business’s needs. But what makes them so superior to many standardized cloud solutions also makes them very hard to replace when they no longer apply to the present zeitgeist.</p><p>By pursuing ERP integration, organizations can breathe new life into their legacy system. The missing functionalities that are meant to support the company’s business model such as advanced BI, cross-organizational inventory management, or ensuring superb customer experience can be added through integrations with other systems. As long as the legacy ERP remains functional, a company can continue using it without risking disrupting existing operations, and still improve and automate their business processes greatly.</p><h3>Better decision making through centralized data</h3><p>Business success is equivalent to quality data plus insights. Businesses do generate a lot of data on a regular basis, but there is a difference between having a lot of data, and having the accurate data and being able to access it preferably in one place and to analyze. The latter is becoming increasingly important to company success.</p><p>Yet a significant number of companies, as the <a href="https://www.accenture.com/_acnmedia/PDF-119/Accenture-ERP-Report-2020.pdf">ERP report 2020 by Accenture</a> (PDF) showed, still have troubles leveraging their data through ERP.</p><p>Integrating ERP with other business applications guarantees that all relevant customer, product, order, sales, fulfillment and other data that builds toward superb customer experience creation is centralized and kept up to date. As a result, the accuracy of data improves significantly. In addition to that, it ensures that all departments have direct access to the most recent data; for instance, the accounting department doesn’t have to wait for revenue information from the sales department.</p><p>Such transparency, accuracy and availability of data facilitate better and faster decision making, but also, ensure smooth business operations in general.</p><h3>…and 3 main challenges of ERP system integration</h3><p>Implementation of an ERP system can already be challenging and resource-consuming on its own. In fact, up to 50% of such projects fail the first time around, according to various research studies, due to a variety of factors. For instance, <a href="https://www.gartner.com/doc/3992251">a Gartner report from 2020</a> (gated content) says that CIO don’t put enough emphasis on data management before beginning with an ERP implementation or “are not sufficiently aware of what data management actions need to be taken”.</p><p>Integrating ERP with other business software applications and systems can be a totally new level of complexity. That is why it is so important to have a good ERP integration strategy. Here are just a few examples of challenges and aspects that need to be accounted for in such a strategy.</p><h3>Unclear strategic priorities and stakeholders</h3><p>“ <em>We bought a new CRM, now we need to integrate it with our ERP</em> “ is not the kind of decision that should trigger an ERP system integration project. To get the most value out of it and ideally, use only as much development resources as really necessary, such a project needs to be tackled from the perspective of business and not technology.</p><p>For example, which top ten business workflows must be automated through this integration in order to increase revenue, increase employee efficiency, and improve customer experience? Answer these questions and you will get a clear sense of how you need to approach your ERP integration project.</p><p>It also means that it is important to bring together the IT team and the key stakeholders in business units to identify critical business processes and automation requirements for the integration to really meet business needs.</p><h3>Shortage of technical expertise</h3><p>Lack of enough expert resources to integrate various systems that might have different data formats and types can lead to project delay in the best case scenario; worst case, it can result in a large amount of errors and false data, ultimately harming the business.</p><p>The problem is — even if two applications provide same-type APIs, they are most likely to use different nomenclature for data objects (see more on <a href="https://www.elastic.io/data-mapping-best-practices/">data mapping</a>). If your ERP is heavily customized, this is most certainly going to be the case. And what if most of your applications are built on REST APIs, but your HCM and Accounting software run on SOAP? Or what if you need to build a bridge to your B2B partner’ IT stack and connect with their ERP solution via EDI?</p><p>All these are different knowledge areas, and you’ll need experts on your team for all of them.</p><h3>Not putting real-time first</h3><p>This is another technical aspect, but it’s an important one. Business process integration in ERPs has traditionally been batch-oriented, which worked effectively as transactions were mostly one-way integrations — from an application XY to ERP.</p><p>This is no longer the case. There are nowadays many scenarios where there is a need to feed data real-time from ERP to other enterprise applications and systems — for instance, homegrown APIs, web portals, mobile or IoT devices may all rely on instant data updates. System integrators who are used to traditional ERP integrations might not be able to handle this.</p><h3>Common ERP integration scenarios</h3><p>Just like ERP supports many business processes, it can integrate with a wide variety of business applications. However, most common scenarios include:</p><ul><li>Customer relationship management (CRM)</li><li>eCommerce platform</li><li>Human capital management (HCM)</li><li>Business intelligence solution (BI)</li><li>Product lifecycle management (PLM)</li><li>Enterprise resource planning (ERP)… — yep, that’s right, another ERP</li></ul><h3>CRM ERP integration</h3><p>As mentioned previously, it’s not uncommon for businesses to use embedded CRM functionality from their ERP system. But at some point, when this functionality has reached its limits, the implementation of a stand-alone CRM solution becomes unavoidable, and with it, comes the need for data synchronization between the two systems to ensure high operational efficiency and data accuracy. Here are some of the benefits of CRM ERP integration project: ​​</p><h3>eCommerce ERP integration</h3><p>Many small to medium retailers are likely to have their business and operational needs covered with just one single eCommerce platform such as Shopify or Magento. The larger a business becomes, though, the higher will be the need for an actual resource planning solution. Here’s where it makes the most sense to integrate an eCommerce platform with ERP:</p><p><em>Additional reading: </em><a href="https://www.elastic.io/mastering-erp-ecommerce-integration/"><em>Preparing for ERP eCommerce Integration Like a Pro</em></a></p><h3>HCM to ERP</h3><p>As mentioned above, some ERP solutions cover certain HR functionalities; however, they will never be able to be on par with a stand-alone HCM software that usually combines the functionalities of both HR information system (HRIS) and HR management system (HRMS) to manage not only payroll or vacation requests, but also such complex processes as new hires onboarding. Integrating an HCM software with ERP can be beneficial for various reasons — advanced reporting being one them -, but to mention just a few:</p><h3>BI and ERP system integration</h3><p>This one is huge. Thorough business data analysis is what any company strives for to be able to make well-informed decisions and predictions fast. And if ERP is treated within a company as a single source of truth that collects data from multiple touchpoints, it becomes a reservoir of data that only waits to be analyzed effectively and shared across departments. This is where a BI solution enters the stage, with its ability to visualize complex data in order to make it easy for all to understand. Some of the benefits of integrating ERP with BI include (but are not limited to):</p><h3>PLM ERP integration</h3><p>While PLM helps manage a product throughout its lifecycle and organize it information such as design, distribution channels or product documentation, an ERP system focuses on certain business processes such as order processing, resource management, or costs management. Both systems on their own are very powerful, but when combined, you can use their joint power to streamline your processes and make them more efficient. This will enable businesses to:</p><h3>ERP to ERP system integration</h3><p>While this doubtfully can be considered really “best practices”, sometimes companies end up having several ERP systems, be it through mergers or acquisitions, extension of a legacy ERP capabilities through a cloud based solution, or, depending on the size of the company, even due to unique preferences of some departments. No matter what the future of such “satellite” ERPs is, it is a good idea to connect them to each other in order to create an accurate view of all data, avoid duplications and keep customer and product information up-to-date across the entire organization.</p><h3>Methods and approaches to ERP integration</h3><p>There are several ways to approach ERP system integration with other business software applications and systems. Which one your IT should choose depends largely by such factors as what types of systems you currently use — on-premises or cloud-based, the available budget for integration projects, and development resources. Here are some approaches to consider:</p><h3>Inhouse integration development with APIs</h3><p>Nowadays, the vast majority of business software solutions have application program interfaces (APIs), which define how systems can communicate with each other and exchange data. Key benefits of API based integrations are:</p><ul><li>Business software applications can actively request data from each other</li><li>They can also pro-actively let each other know when a specific event happens</li></ul><p>In addition to that, IT can develop their own APIs that would streamline the communication between external systems and home-grown applications.</p><p>A word of caution, though: While this approach undoubtedly has many advantages, it can also be rather resource-consuming, because developers will need to study each single application’s API documentation and develop every integration manually.</p><p><em>Additional readings: <br></em><a href="https://www.elastic.io/6-characteristics-of-great-api/"><em>What Makes a Good API | 6 Aspects That Make it Fit for Integration in 2022</em></a><em> <br></em><a href="https://www.elastic.io/integrating-different-apis-types/"><em>APIs Types and Their Integration Specifics | A Quick Guide</em></a><em> <br></em><a href="https://www.elastic.io/rest-integration-methodology/"><em>How do you do REST integration | Step-by-Step Methodology</em></a></p><h3>Integration tools provided by vendors</h3><p>With the growing understanding of how important in-built integration capabilities are for successful application adoption, many vendors nowadays offer their own solutions for connecting applications with each other.</p><p>The methods and approaches as well as the landscape of integrated systems behind these solutions vary. Some vendors use third-party integration middleware under-the-hood, which means that essentially, when integrating their application with other software, you’re using the tool provided by an integration platform vendor.</p><p>Other vendors develop in-house middleware technology and provide integrations off-the-shelf. And some vendors work with partners to outsource the development and maintenance of integrations, though still providing them through their own marketplaces.</p><p>The benefit of this approach is that it can save an insane amount of resources. But the potential drawback is the relative inflexibility of provided solutions. Since they are oftentimes standardized to accommodate for the most common scenarios and business processes, they might not fit if a business has performed a lot of customizations to the ERP or, say, CRM (think Salesforce and its ability to allow the creation of custom objects).</p><h3>Using third-party integration middleware</h3><p>A large number of software vendors specialize in providing integration platforms and middleware that reduce or even eliminate the need to build in-house integrations between ERP systems and other software applications. These solutions can be built with various architectural patterns, with each of them having its own advantages and drawbacks.</p><p><em>Additional reading: </em><a href="https://www.elastic.io/mastering-erp-ecommerce-integration/"><em>Preparing for ERP eCommerce Integration Like a Pro — 2 approaches to ERP eCommerce integration</em></a></p><p>The purpose of such dedicated integration tools is to automate the flow of data between various systems while eliminating the need for the rigid point-to-point integrations, facilitate data transformation, and enable centralized management of integrations.</p><p>One of the tools whose popularity has been growing significantly in recent years is integration platform as a service (iPaaS). The main reasons behind this growing popularity are:</p><p>If you’re curious to learn more about the <strong>advantages of integrating</strong> ERP with other systems <strong>using iPaaS</strong>, read this success story from an Italian B2B retailer who uses <a href="https://www.elastic.io/enterprise-integration-platform/">elastic.io iPaaS</a> to connect their <strong>on-premises</strong> Microsoft Dynamics Navision with <strong>cloud-based</strong> MS Dynamics CRM and online shop:<br><a href="https://www.elastic.io/erp-integration-online-crm/">Fabric Houses reduces 85% development costs through iPaaS implementation</a></p><p>However, using third-part tooling also implies the risk of a vendor lock-in, which means that choosing the right vendor requires careful evaluation of business needs and requirements, active collaboration of IT with other business stakeholders, and a clear vision of the future development of business processes automation.</p><p><em>Additional reading: </em><a href="https://www.elastic.io/seven-major-players-enterprise-integration-platform/"><em>The 7 Major Players in Enterprise Integration Middleware You Should Look Out For in 2022</em></a></p><p><em>Originally published under the title </em><a href="https://eio.guru/erp-integration-guide-media"><em>ERP integration guide</em></a><em> on April 8, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d60887c3684" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[12 New Application Integration Statistics and Trends for 2022]]></title>
            <link>https://medium.com/@O_Annenko/12-new-application-integration-statistics-and-trends-for-2022-946291140b30?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/946291140b30</guid>
            <category><![CDATA[system-integration]]></category>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[application-integration]]></category>
            <category><![CDATA[system-integrator]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 01 Apr 2022 14:10:50 GMT</pubDate>
            <atom:updated>2022-05-03T15:17:40.015Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mf4LvkTjKqsVH7ou.jpg" /></figure><p>Once in a while, I embark on an extensive research about the most fresh, up-to-date statistics around the application integration / system integration sector. Knowing what integration issues companies face nowadays helps better understand our potential customer pain points and needs, shape a better offer and align our product map with the most current requirements. And since such research takes me a LOT of hours, this time I decided — I can catch two birds with one hand (I know, I know, this is not the original saying but I don’t like even the idea of killing birds); do my research and write a blog article based on them.</p><p>So, here are some interesting data over the past 2–3 years and the conclusions we can derive from these. I grouped the insights in two parts: the ones that find support by data from several studies, and the ones derived from single studies.</p><h3>Part 1: An increasing number of applications per company drive the need for application integration even further</h3><h3>Companies continue using a large number of applications</h3><p>…and it doesn’t seem to be any different any time soon. Over the past several years, we’ve all seen reports saying that an average company uses XY number of applications, and if you can at least roughly recall the numbers, this tendency has only been growing.</p><p>A new joint survey by Mulesoft and Deloitte sent ripples all over by stating that <strong>companies now use an average of 976 applications</strong>, which is by 133 apps more than a year ago. It’s also worth mentioning that <strong>only 28% of these are integrated</strong>, according to this new report.</p><p>And I have to say, this is quite a shocking number. Maybe, it’s because of the size of the companies that were part of the survey — all respondents came from large enterprises with at least 1,000 employees -, or the specific sample of the respondents for this particular study, or the semantics of the original survey question, because the study actually mentions ‘ <em>976 discrete applications</em> ‘ without clarifying what exactly they meant here by discrete. But still, this number is stunning, leaving one almost in disbelief.</p><p>In contrast, the recent 2022 Businesses at Work report by Okta cites a much lower number, even for large organizations (over 2,000 employees) — <strong>187 applications deployed on average</strong>. But even here, it is an increase compared to the previous 2021 report (which cited 175 applications on average), and a steady increase in the average number of used applications in general, regardless of the size of a company.</p><p>It is hard to say which number is closer to reality. There are some other scattered studies I was able to find that support Okta’s findings. For example, Beamy, a SaaS Management provider, conducted its own research, according to which in 2021, companies had an average of 190 enterprise SaaS application solutions in use. This number is cited in <a href="https://www.itassetmanagement.net/2022/02/03/turn-shadow-it-into-business-led-it-how-saas-governance-enables-cios-to-democratise-digital-adoption-re-invent-the-it-business-collaboration/">this article</a> but I wasn’t able to find the original research data, hence the sample size and the company types remain unknown. And Blissfully’s 2019 report found that companies used an average of 137 SaaS apps, which already was a 30% increase from 2018, leading to believe that this number has only grown further since then.</p><p>On the other hand, a somewhat older report (2017) by Cloud Security Alliance revealed that large enterprises with over 50,000 employees run an <strong>average of 788 custom applications</strong>, that is — application systems and services that were developed in-house. This older study would, on the contrary, support the data provided by the study from Deloitte and Mulesoft.</p><p>I guess the truth lies — as is often the case — somewhere in the middle. I can hardly imagine that an average large company deploys less than 200 application software systems; if so, then this number certainly doesn’t include shadow IT that flies under the radar. But the number of 976 raises some doubts, either.</p><p>This is also a good reminder that we need to be careful with semantics when we design surveys and studies — unless ambiguity is the goal. It might, for example, very well be that the shocking number of 976 applications given by Mulesoft and Deloitte is correct after all but it covers any type of application, both third-party, off-the-shelf business software solutions as well as homegrown, custom-developed applications and services, and maybe even the aforesaid shadow IT.</p><h3>Application integration (aka system integration) is still one of the top challenges for IT</h3><p>While it was hard to find any industry-neutral numbers, Ascend2’s survey revealed that <strong>44% of marketers</strong> they asked named inadequate or missing application integrations as number one challenge for succeeding in generating valuable insights from data. <strong>In the HR sector</strong>, the number is nearly the same — <strong>45% </strong>of a 2021 Jitterbit’s survey respondents cited accessing and combining data from several HR-related systems as a problem.</p><p>Yet another 2021 study — this time by Deloitte — showed that <strong>poor integration across applications is seen as the second main barrier</strong> to the effective application of digital technology in <strong>procurement</strong>, with cumulatively <strong>45% of respondents</strong> ranking this factor as one of their top three issues. It was beaten only by ‘poor data quality’ that “won” the first placement in the chart, although we have to acknowledge here that poor data quality and poor application integration often go hand in hand.</p><p>If we can extrapolate from these isolated reports, then it will be <strong>fair to assume that roughly over 40% of companies see application integration as one of their top challenges</strong>. And in fact, data from the Mulesoft &amp; Deloitte’s 2022 report would support this assumption. According to it, <strong>38% of respondents</strong> see integration of siloed applications and data as their biggest challenge to digital transformation within their organization.</p><h3>Part 2: Top integration scenarios, EiPaaS on the rise, and the high costs of poor integration</h3><h3>Top five application integration scenarios</h3><p>For the lack of a fresher report, here are the findings from the Gartner’s 2019 Business Application Integration Survey:</p><ul><li>Analytical or BI environments (cited by 86% of the survey respondents)</li><li>Legacy systems (79%)</li><li>Partners and ecosystems (68%)</li><li>Creation of a single source of truth (65%)</li><li>Human Capital Management i.e. HR-related applications (63%)</li></ul><p>I doubt that the first scenario has since lost its placement. After all, data intelligence, business intelligence, and data-driven decisions are still very high on any company’s agenda.</p><p>But I’d be curious to know if the second scenario (legacy systems) and the third one (partners and ecosystems) swapped placements.</p><p>More and more companies are talking about creating API ecosystems; SaaS vendors are growing to appreciate the power of <a href="https://www.elastic.io/software-products-vs-software-ecosystems/">SaaS ecosystems</a>. So, it might very well be that the scenario ‘partners and ecosystems’ has gained in urgency since 2019. It’s a pity Gartner doesn’t have a new, updated version of this survey yet, but maybe they will bring it out soon.</p><p>EiPaaS is the driving force behind enterprise process automation</p><p>According to yet another Gartner’s recent survey, the 2021 Hyperautomation Survey, <strong>11% of business technologists (BTs) see an </strong><a href="https://www.elastic.io/enterprise-integration-platform/"><strong>enterprise integration platform</strong></a><strong> (EiPaaS)</strong> as one of the <strong>three most-used tools</strong> to facilitate business-driven automation initiatives.</p><p>At the same time, the survey also found that these BTs on average <strong>employ the capabilities of two vendors’ solutions</strong>.</p><p>This implies that a single tool may not be sufficient and actually, correlates with what Gartner has been highlighting in its report for several years — no one tool on the current market is capable of meeting all application integration requirements.</p><p>This might change in the future, though, when we’ll see more iPaaS / EiPaaS market consolidation. The first roll of acquisitions has already swept through this industry, although currently, the tendency seems to be that it’s SaaS vendors that are more interested in strengthening the integration capabilities of their products and services than iPaaS vendors wanting to expand their portfolio and beef up their technology stacks.</p><p>What makes me think this way? Well, a larger portion of the most recent acquisitions have been carried out by SaaS vendors: UiPath ( <em>robotic process automation platform</em>) acquired Cloud Elements (2021), Salesforce — Mulesoft (2018), Workiva ( <em>cloud based work process management platform</em>) — OneCloud (2021), Qlick ( <em>data visualization and business intelligence platform</em>) — Blendr.io (2020), Microsoft took over Clear Software (2021), HubSpot — PieSync (2019). This is an interesting tendency that would support the growing importance of an <a href="https://www.elastic.io/saas-embedded-integration/">embedded integration</a> platform, that is maybe even worth exploring in a separate article.</p><h3>Poor integration costs businesses money… a lot of it</h3><p>One more recent study, this one by Cleo, found that a quarter of supply chain companies <strong>may lose over $ 500K per year because of poor business process integration</strong>. Out of 323 companies who participated in this survey, 85% openly stated that they are indeed losing money due to integration-related issues. Moreover, those who said they lose over $500K a year, were 24% of respondents — an uptick by 6% compared to the survey from the year before.</p><p>In this context, it’s interesting to note that according to the same survey, the number of companies who feel it takes them too much <strong>time to onboard new supply chain partners has also increased by roughly around 10%</strong>.</p><p>While there are different reasons for that, poor application integration is certainly one of them. I’ve already touched on this topic in my comparison of <a href="https://www.elastic.io/edi-vs-api-b2b-integration-the-difference/">EDI vs API</a> technologies a few weeks ago, and to sum it up here: It’s often due to incompatibility of old, legacy systems or custom-built applications and lack of integration tools to speed up the process of data transformation and data exchange between different protocols and APIs.</p><p>Unfortunately, I wasn’t able to find any fresh reports or surveys from other sectors, but considering that analysts and experts often criticize inadequate application integration, for example, in Human Capital Management (HCM), or in ecommerce / retail, we can assume that these sectors experience very similar money loss as described in Cleo’s survey for supply chain.</p><h3>All 12 application integration statistics summarized</h3><p>Be warned: If you have jumped straight to this part, you’ll see only the “naked” numbers. If you’d like to have more background data, details and conclusions based on these numbers, start from the top of the page.</p><p><strong>On applications usage:</strong></p><ul><li>Deloitte and Mulesoft (2022): companies now use an average of 976 applications, with only 28% of these to be integrated</li><li>Okta (2022): large organisations have 187 applications deployed on average</li><li>Beamy (2021): companies have an average of 190 enterprise cloud based application software solutions in use</li><li>Blissfully (2019): companies use an average of 137 business cloud based apps</li></ul><p><em>Note: Scroll to the top to understand what to make of these contradicting stats. </em><strong>On the importance of application integration:</strong></p><ul><li>Ascend2 (2018): 44% of marketers see poor integration as top challenge for succeeding in generating valuable insights from data</li><li>Jitterbit (2021): 45% HR specialists identify accessing and combining data from several HR-related business software systems as one of top problems</li><li>Deloitte (2021): 45% respondents in procurement cite poor integration as the second main barrier to the effective application of digital technology</li><li>Deloitte and Mulesoft (2022): 38% of respondents see integration of siloed business software applications as their biggest challenge to digital transformation</li></ul><p><strong>Other isolated statistics:</strong></p><ul><li>In 2019, Gartner cited analytical or BI environments as the top application integration scenario (86% of respondents), followed by legacy software systems integration (79%), partners and ecosystems (68%), building of a single source of truth (65%), and process automation in Human Capital Management sector (63%)</li><li>2021 Hyperautomation Survey (Gartner) revealed that 11% of business technologists consider an EiPaaS as one of the top three tools they use most</li><li>On average, business technologists use at least two vendors’ application solutions to drive business processes automation within their organizations</li><li>Cleo’s 2022 report found that 85% of supply chain companies believe they’re losing a lot of money because of insufficient business software system integrations; out of these, 24% say they lose over $500K per year — nearly a quarter of respondents and an uptick by 6% from the year before</li></ul><h3>Conclusion: Application aka system integration may shape an enterprise’s survivability</h3><p>At the risk of sounding overdramatic, I’d say that based on the most recent surveys and reports, system integration (or ‘application integration’ if you want) is likely to become the make-or-break type of thing for enterprises — if this is not the case already.</p><p>We can see that an average number of applications per company is only growing from year to year. We also see that enterprises use a large number of not only off-the-shelf business applications that are more likely to provide in-built integration capabilities, but also a huge number of homegrown applications that still need to be integrated into an enterprise’s data ecosystem.</p><p>And this leads to the growing importance of using an integration tool to let all these customer, product, partner and other data flow easily from one application to another. Personally I see the purpose and the need of such tool not only in facilitating the creation of integrations and automations per se. I would argue that its most value will be, in fact, in integrations maintenance and management; in providing IT teams with a holistic view of all the connected systems, integration projects and data flows organization-wide, and in enabling them to cooperate on existing projects or quickly get up to speed on new ones regardless of the geographical location and the level of involvement.</p><p><em>This article was originally published under the title “</em><a href="https://eio.guru/application-integration-statistics-media">Application Integration Statistics</a><em>” on April 1, 2022. For link to the quoted researches, please refer to the original article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=946291140b30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Webhook integrations | How to use webhooks in your integration flows]]></title>
            <link>https://medium.com/@O_Annenko/webhook-integrations-how-to-use-webhooks-in-your-integration-flows-ddea3db5f76b?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddea3db5f76b</guid>
            <category><![CDATA[process-automation]]></category>
            <category><![CDATA[application-integration]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[data-integration]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 14:11:43 GMT</pubDate>
            <atom:updated>2022-04-12T12:32:29.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lC-ne6q4D430ldgn.jpg" /></figure><p>While APIs are often called as the new standard for integrating business applications, the topic of webhooks integration seems to be largely underrepresented in the how-to guides and reference literature.</p><p>This is unfortunate, because actually, webhooks represent a powerful mechanism that allows to build event driven integrations with quite a high level of customization and functionality. So, let’s take a look at what makes webhooks so special when it comes to workflow automations, what their place in such automation scenarios is, and the different ways how webhooks can make apps talk to each other.</p><h3>What is a webhook</h3><p>Webhooks are one of the few methods how apps and web services can keep data in sync with each other. Moreover, a webhook allows you to trigger a specific event as an immediate, real-time response to another event — e.g. sending a push notification to your customer as soon as their order was dispatched.</p><p>This is different from how you would handle this through APIs. An API requires a target application to perform a request for data from a source application, while a webhook simply notifies the target apps when certain events occur in the source app. This makes webhooks a much faster alternative to polling for data changes at certain time intervals.</p><h3>What is a webhook integration</h3><p>Setting up a webhook for integrations purposes is generally very easy. It only requires configuring an <strong>‘HTTP POST’ request</strong> on the side of the sending application. This POST request will <strong>deliver a payload data package to a URL</strong> that points to a <strong>specific API endpoint</strong> in the receiving system, or any other listener that you have defined on the webhook’s side.</p><p>This payload data contains the event data, wrapped in the request body, that can then be processed as needed by the receiving application.</p><p>Webhooks can be used in a <strong>variety of automation scenarios</strong>. Let’s say, you designed a web app that collects and processes all orders placed on a user’s Etsy account.</p><p>Rather than having this web app continuously poll the Etsy’s API, you can implement a webhook integration that would allow Etsy (aka the ‘sending’ application) to automatically push new orders into your web app (aka the ‘receiving’ application) via a registered URL as soon as they are created.</p><p>When used within the scope of automating a business workflow, <strong>webhook payload data can be transmitted not just to one, but several systems</strong>. When an event occurs in your custom-built system, e.g. a new appointment was booked, the webhook can trigger an entire workflow process across as many systems and platforms as you require, sending certain parts of transmitted data to various applications.</p><h3>Things about webhook integrations to consider:</h3><h3>Designated endpoints</h3><p>To enable webhooks integration, the receiving application must have <strong>designated URL / API endpoints on the sender’s side </strong>that would accept notifications about new events and process the POST requests. These endpoints should be readily exposed to potential webhook users so they can easily set up the respective calls to them.</p><h3>Adding a response</h3><p>After the POST data is processed, the URL / API endpoint can <strong>return a successful 200 response</strong> to the webhook call initiator to notify it about the status of the call. This isn’t a required step but some application providers explicitly ask for it in order to avoid wasting resources.</p><p>Stripe, for example, openly states that it will retry sending an event if a response isn’t communicated within a reasonable time. If you’re not sure whether a response is required, check the respective application’s documentation or ask their developers directly.</p><h3>Securing the webhooks</h3><p>Once an application is configured to receive payloads, it will listen to any payload sent to a specific endpoint. Hence, <strong>it is critical to verify</strong> that the request came from the expected sender.</p><p>There are several methods, one of which is setting up a <strong>secret token or a signature shared</strong> between the client and the server. This is widely used by many business applications, for example, Stripe, Zendesk, SendGrid.</p><p>On the elastic.io platform, we offer <a href="https://docs.elastic.io/getting-started/webhooks-overview.html#webhook-flows"><strong>three different</strong></a><strong> Webhook verification methods</strong> — the basic authorization with a username and password, API key and HMAC signature.</p><h3>Reconciliation strategy</h3><p>Webhooks aren’t 100% reliable; if a receiving endpoint went temporarily offline, the payload that was sent over the webhook <strong>might never reach the receiving application</strong> if there is no mechanism to retry failed data pushes.</p><p>This is why webhooks shouldn’t be the only method of data delivery to your app. Instead, you should have the so-called <strong>reconciliation strategy</strong>, i.e. the processes to pull data from the source application on a regular basis. Of course, the easiest way to do this is to use an <a href="https://www.elastic.io/sync-data-between-applications-apis-webhooks/">API to support webhooks</a> integration.</p><p>But there are other methods as well. For one, you can <strong>implement an event messaging queue</strong> such as the one provided by RabbitMQ or Amazon’s Simple Queue Service (SQS). The webhook calls will be stored in a queue, which will prevent the loss of payload data pushed by a server when the webhook or the endpoint went offline for some reason.</p><h3>Other Webhook integration examples and benefits</h3><p>To sum it up, webhooks are an excellent solution for application integrations scenarios that <strong>require near-real-time or real-time data updates</strong>. So much so that many web services and business applications extensively cover in their documentation how to handle webhook integrations to enable data exchange with their app.</p><p><strong>Shopify</strong> offers webhook endpoints to help developers, for example, promptly react to any price changes or refresh inventory levels after a transaction has been completed on a store’s side. <strong>Zendesk</strong> enables webhook integrations to set up alerts in Slack when an urgent support ticket is created, or forward the details of a ticket to Asana after an issue has been handled. Or you can use webhooks with <strong>Stripe</strong> to push notifications to other apps once a payment has been processed successfully.</p><p>But automation scenarios using webhooks may go far beyond that. First, they are an ideal solution <strong>when an application doesn’t provide any API</strong> at all (which is often the case with legacy applications) or the available API isn’t the greatest fit for the job.</p><p>Secondly, on elastic.io we often see the cases when developers use our <a href="https://docs.elastic.io/components/webhook/index.html">webhook connector</a> to <strong>link two or more of their automation workflows</strong>, with the webhook playing the role of a trigger for a subsequent flow.</p><p>This is usually done for one of the two reasons:</p><ol><li>There is a high probability that the automation workflow will grow very long and complex. By assuming the coupling role, <strong>webhooks help break down this potentially long workflow</strong> into several smaller one, which makes your integrations much easier to manage</li><li>One and the same data processing is supposed to trigger several different automation flows (<em>e.g. as soon as the order status is updated, there is an invoice to be issued, a mail notification to be sent, the inventory level to be changed, and a note to be created in CRM</em>). In such a scenario, a <strong>webhook will help avoid duplicating the same series of steps</strong> in multiple flows.</li></ol><p>To recap, implementing webhook integration is a great method to <strong>improve efficiency using real-time events and data</strong>. As such, webhooks support the modern, event driven architecture that enables businesses to adapt to changes quickly, make informed business decisions, and deliver real-time user experiences.</p><p><em>Originally published under </em><a href="https://eio.guru/webhook-integrations-media"><em>Webhooks Integration</em></a><em> on March 18, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddea3db5f76b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do you do REST integration | Step-by-Step Methodology]]></title>
            <link>https://medium.com/@O_Annenko/how-do-you-do-rest-integration-step-by-step-methodology-9a7d730b9524?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a7d730b9524</guid>
            <category><![CDATA[api-integration-services]]></category>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[rest-api-integration]]></category>
            <category><![CDATA[rest-api]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 11 Mar 2022 10:10:31 GMT</pubDate>
            <atom:updated>2022-04-05T14:12:40.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9Ou9j4u8-5qwVvaK.jpg" /><figcaption>Image by @xresch on Pixabay</figcaption></figure><p>When you need two or more applications and services to exchange data between them on a regular basis, REST integration (or REST API integration) is one method that slowly but steadily gains status of the new and preferred standard.</p><p>But as with any other project where you need to connect apps and web services via API, integrating REST requires good preparation and a solid methodology to avoid project delays, development overhead and too many errors. So, how do you do REST integration the right way? Well, in this article, we explore exactly this topic, offering you a step-by-step guide of all the things you need to consider and clarify before you even start working on the code.</p><h3>Step 1: Do your due diligence</h3><p>I’m sure you already know that no two REST APIs are the same, so even before you start thinking about data flows — meaning how exactly you plan to move datasets between applications and web services — you need to establish whether REST API integration is feasible in the first place and make a rough estimation of how much time you need to plan for it.</p><p>There is one thing you should check upfront: Does the application you want to integrate with provide good documentation? Solid documentation is the backbone of any automation project using APIs; in fact, it can be considered as one of the <a href="https://www.elastic.io/6-characteristics-of-great-api/">characteristics of a good API</a>. Ideally, it should provide you with detailed information on how to format your requests, what kind of endpoints are available, what endpoints you need to evoke this or that business process (e.g. payment processing), give you plenty of code examples, and much, much more. Without it, integrating REST will be challenging and resource-intensive.</p><p>An example of such great documentation is <a href="https://developers.vtex.com/vtex-rest-api/reference/get-to-know-vtex-apis">VTEX REST API reference</a>; saying that it is excellent is an understatement. Unfortunately, for many, many API documentations this is not the case, but this is a different story.</p><h3>Step 2: List the key elements of your REST integration</h3><p>Before you even start drafting a strategy for connecting various data objects, you should sort out some other important aspects of the process of REST API integrations. It’s a good idea to set up a checklist so that you know what information you need to gather upfront. This checklist should answer questions such as:</p><ul><li>Are there any restrictions on the payload</li><li>What are the provided authentication methods</li><li>What is the allowed number of requests per unit time</li><li>Is there SSL certificate validation</li><li>What are the traffic encryption requirements</li><li>Are there any specific headers that a request should contain</li><li>Does the vendor provide a test server or any other way to perform a test request, and how you get access to that</li></ul><p>Now let’s go over some aspects in more detail.</p><h3>Authentication methods</h3><p>REST APIs have several methods of authentication, but with APIs for business software applications and web services such as CRM or Accounting, you will most likely find two: API Key and OAuth (2.0). Authentication with API Key is pretty straightforward; some applications provide a default API Key and API Token, others, like VTEX digital commerce platform, allow you to set up separate API keys for each REST integration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*n5Vq-GZT6iQPJCiV9PrWlw.jpeg" /><figcaption>REST API Key example from VTEX</figcaption></figure><p>OAuth (2.0) can be a bit more complex as it has different sets of mechanisms for granting secure access. <strong>Authorization code</strong> is mostly used for server-side and mobile web applications; the so-called <strong>Implicit</strong> authorization flow (when the client retrieves an access token directly) is usually found in web, desktop and mobile applications and services that don’t include any server component; logging in with a <strong>Username and Password</strong> is another common mechanism; and the <strong>Client Credentials</strong> method is intended for server-to-server authentication, where users can specify their credentials in the client application.</p><p>In practice, many applications allow you to create the so-called OAuth Clients that will allow the users and developers to easily authenticate themselves with a respective application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DiAgshihjIq77WSgpR9NZA.png" /><figcaption>OAuth Client example from Zoho CRM</figcaption></figure><p>In addition to clarifying how to grant access to the respective applications, you should also think about how long you’ll need the authentication instance to run for. In other words, will the data exchange need to be open all of the time or only on occasion?</p><h3>REST integration: How much data and when</h3><p>When planning your REST API integration, consider how much in volume, how often and at what intervals data must be transferred. In order to save own resources, most REST APIs pose a limit on how often an API can be called or how much data can be transferred per day. Similarly, some business processes are “satisfied” when data is delivered in batches once a day; for others such as lead routing, timely data update is critical. This means that the amount of data to be transferred must be balanced against the rate of data transfer allowed and the time expectation for accessibility and availability of data.</p><p>This requires combining the project requirements with the capabilities and the provided resources of the respective REST APIs. You may start with requesting an exact list of business processes that should be automated through your project. If necessary, talk to other departments, e.g. with sales people, directly. This way, you’ll get a good overview of how much data, when and how often should flow between the applications and web services in question. Then check the respective REST API documentation or get in touch with their technical support to find out how much data, when and how often you <strong><em>will be allowed</em></strong> to transfer, and then work from there to find a well-balanced compromise.</p><h3>Data Inconsistencies</h3><p>When integrating data, you will encounter all kinds of data inconsistencies and discrepancies. The irregular naming of data objects (‘ customer&#39; vs &#39; client&#39;) or data objects that are custom (&#39; payments&#39; vs &#39; firstpaymentofthemonth&#39;) are the most obvious ones, but it can be even more banal: one application captures date and time in the format such as &quot; Tue Feb 15 2022 14:16:19 GMT+0000 &quot;, whereas the other app accepts only the ISO 8601 format.</p><p>Without checking and amending date and time formats first, your REST integration will produce errors in the best case scenario or completely false data in the worst case scenario where for example “November 5th” will become “May 11th”.</p><p>So, be sure to set up a checklist of all possible aspects and elements that might be different and result in critical errors: date &amp; time format, field size limitations, clothing size standards, currency values, and so on.</p><h3>HTTP Request Methods</h3><p>REST APIs use specific HTTP protocol request types to perform the Create, Read, Update and Delete (CRUD) operations. The most commonly used methods are Post, Get, Put and Delete methods, although <a href="https://assertible.com/blog/7-http-methods-every-web-developer-should-know-and-how-to-test-them">there are a few more</a>. These methods define the intent of your data flow: When you send data to another application, this application will need to know what’s your intention behind it. Do you want to create a new record, update an existing one, or delete a record?</p><p>You can also introduce the so-called UPSERT function. This one combines the methods of ‘ <em>Post</em>’ and ‘ <em>Put</em>’ (or ‘ <em>Create</em>’ and ‘ <em>Update</em>’), checking whether a certain record, usually specified by ID, is available and updating it if it is, or creating a new one if it isn’t. Many modern <a href="https://www.elastic.io/enterprise-integration-platform/">enterprise integration platforms</a> feature this method as well. The advantage of ‘Upsert’ is that it helps avoid or at least limit duplicating data and/or losing critical data records.</p><p>Also, a good API documentation should give you a clear overview of what method goes with what API endpoint. For example, VTEX clearly states that to remove all items from a shopping cart, you should use the POST method together with the URI https://{mystore}.{myvtex}.com.br/api/checkout/pub/orderForm/{orderFormId}/items/removeAll, whereas to update a shopping cart, you&#39;ll use PATCH with <a href="https://{mystore}.{myvtex}.com.br/api/checkout/pub/orderForm/%7BorderFormId%7D/items.">https://{mystore}.{myvtex}.com.br/api/checkout/pub/orderForm/{orderFormId}/items.</a></p><p>If the HTTP request methods are not clearly defined in the respective REST API documentation, you will need to get in touch with their technical team and sort out this question upfront.</p><h3>Create a REST Integration Specifics overview</h3><p>Ideally, after you did your research and clarified the points listed above, you should end up with a good overview of what each respective API can do and how. It might be a good idea to put all that information in one table for future reference. Here is an example of such overview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQGzVPZ0NyC21qKNYrq9Zg.jpeg" /><figcaption>Integrating REST — project overview example</figcaption></figure><p>Those pieces of information that you weren’t able to find on your own will need to be clarified with the support of the respective application. For example, if you know that your current license will allow you to make only 50 requests per minute but the business process you need to automate might require slightly more, you can discuss how to get access to more resources without actually upgrading the whole software license; maybe the vendor will allow to buy an additional set of requests.</p><h3>Step 3: Visualize Data Mapping and Transformation</h3><p>Once you’ve sorted out the key aspects that can affect the success of your REST API integration project at the very early stages, it’s highly recommended to develop a visualization of the data objects you will need to map. This will not only bring more structure into your project and help others — your teammates, non-technical colleagues, consultants — understand what you’re doing or have done, but it will also give you a clear understanding of how much data transformation needs to be performed.</p><p>I have already written about <a href="https://www.elastic.io/data-mapping-best-practices/">Data Mapping Best Practices</a> before, so if you would like to learn more about it, you’re more than welcome to check out that article. In short, this phase can be divided into two stages. The first one is logical data mapping, which is rather a high-level, conceptual phase of the project, where you can bring in non-technical people such as your colleagues from accounting or sales. Next, it is followed by physical data mapping, which gets down to a precise correlation of every data object in question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0iS21sUm7JwM2hOFCszWQ.png" /><figcaption>Physical data mapping example</figcaption></figure><p>The image above is, no doubt, rather a fancy representation of how you can perform physical mapping. In practice, it can be as simple as using an Excel or a Google Spreadsheet where you put your source application on one side and the destination application on the other, listing not only the object or field names but also other key pieces of information such as:</p><ul><li>object or field IDs,</li><li>the respective data type of each object,</li><li>maximum field length,</li><li>is the respective object / field required or not, and so on</li></ul><p>One important thing to do when working on data mapping is eliminate or at least limit any confusion in terminology. For example, the word ‘approval’ may mean, or rather, cover entirely different processes depending on the application vendor. Over time, it might even make sense to create some kind of a glossary for most common terms.</p><h3>Step 4: Do a test REST integration with Postman</h3><p>Once you’ve gathered all the supporting information you could find and set up a mapping plan, you may take an extra step and run a test with a specific business process, e.g. executing an order fulfillment, on Postman, — with the specifications of a corresponding REST API, checking the most common use cases with various datasets. In other words, you would simulate what the application will do later automatically.</p><p>You’d be surprised but such a test run can reveal up to 70 percent of documentation inaccuracies at the very early stages of the REST integration development. For example, the documentation said that a certain endpoint will accept JSON whereas in reality, it expects form-data. Or the rules for field validation are specified incorrectly.</p><p>You can then collect the errors you received and if you find no obvious reason for them, send them to the developers of the respective REST API for further clarification and correction.</p><p>Of course, using Postman is just one option out of several. Maybe you can get access to a test server with API or there is a mechanism that allows to send test requests to the production server.</p><h3>Conclusion</h3><p>It sure IS a lot of work. But the more time you’ll spend with planning and preparation, the easier and smoother the actual development will be. Quoting Confucius:</p><blockquote><em>“Success depends upon previous preparation, and without such preparation there is sure to be failure.”</em></blockquote><blockquote><em>Confucius</em></blockquote><p><strong>Another strategy you might want to consider is using a middleware such as </strong><a href="https://www.elastic.io/"><strong>iPaaS</strong></a>. A modern <a href="https://www.elastic.io/enterprise-integration-platform/">enterprise integrations platform</a> is built around the concept of APIs, providing tools that are simple to set up and configure for API-based communication with applications and web services, be it REST or SOAP. With iPaaS middleware, at least you won’t need to perform such an extensive research to understand how you can connect to a respective API because this has already been done for you.</p><p>Of course, make no mistake — you will still be required to understand the specifics of the business process you’re implementing through your project, but even mapping between different data objects is often simplified through a user-friendly interface with a drop-down menu, where you only need to select the respective data object. Plus it allows easier flow management due to centralized monitoring and logging systems.</p><p><em>Originally published under </em><a href="https://eio.guru/rest-integration"><em>REST API integration</em></a><em> on March 11, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a7d730b9524" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Marketing Automation 2022 | Context, Examples, Challenges]]></title>
            <link>https://medium.com/@O_Annenko/digital-marketing-automation-2022-context-examples-challenges-360bf811ee94?source=rss-6ebbf7a66efb------2</link>
            <guid isPermaLink="false">https://medium.com/p/360bf811ee94</guid>
            <category><![CDATA[marketing-automation]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[marketing-technology]]></category>
            <category><![CDATA[martech]]></category>
            <category><![CDATA[application-integration]]></category>
            <dc:creator><![CDATA[Olga Annenko]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 11:17:10 GMT</pubDate>
            <atom:updated>2022-03-22T13:15:07.001Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v8T6L4Cu256GiNB5.jpg" /></figure><p>The explosion of marketing technology (martech) has been one of the main drivers of marketing’s evolution over the last decade. Just compare: The Chief Marketing Technologist blog has been tracking the industry’s growth for ten years and when it first released its yearly marketing technology landscape overview in 2008, the chart contained roughly 150 tools. In 2021, Scott Brinker, the owner of the blog, <a href="https://chiefmartec.com/2021/12/2021-the-year-martech-shrank-just-kidding-a-year-in-review/">said that he didn’t even bother updating</a> the chart from 2020, which estimated there were over 8,000 martech solutions available at that point.</p><p>The martech industry is likely to continue growing and innovating, and this means that B2B marketers now more than ever have to look for ways to streamline and simplify their tech stacks, either by reducing the number of employed solutions to more manageable numbers or by finding efficient tools to enable continuous data exchange between them.</p><p>In this article, we want to explore how digital marketing automation is the answer to the latter approach, how it is done properly, and who should be in charge of it. But let’s start with the basics.</p><h3>What is marketing automation in general?</h3><p>When you google what digital marketing automation means in general, more often than not you’ll find that this term is referred to marketing software or technology that lets you automate marketing operations and activities as well as campaigns across various channels. The keywords here are ‘software or technology’. Such definitions lead us to believe that there might be one (or maybe, just a handful, at most) digital marketing automation tool that can help us automate a variety of marketing-related activities.</p><p>But let me challenge this thought. Yes, in an ideal world we shouldn’t deploy too many platforms and tools. In an ideal world, all datasets and processes that belong to one specific part of marketing, say social media or SEO, should be handled in one single tool. But the reality looks very different. For SEO purposes alone, I use 7–8 tools, and I’m the only one in my team who takes care of SEO. For email marketing, we have Leadfeeder, Hubspot, Intercom (we used to have MailChimp on top of it but moved away from it a few months ago), and our partner-agency who helps us with email marketing deploys yet another tool. And we are not a huge company. See what I’m trying to get at?</p><p>The more people there are in the marketing department, the larger the company is, the higher is the probability that people use at least two different tools for the same workflows. New tools are coming either through acquisitions, partnerships, joint ventures or simply because a subsidiary in Europe prefers to deploy another marketing application to comply with local data regulations than its parent company in the US does.</p><p>Consolidating all marketing activities in just a handful of software applications is a sweet idea, but its implementation is nearly impossible. Therefore, let’s take a step back and treat digital marketing automation not as a tool, or software, or technology, but rather a strategy or an approach if you like, to share as many datasets as possible between as many martech-related tools as possible. If you’re now asking yourself “what for” — good, because this brings us to the next question:</p><h3>What is an example of digital marketing automation?</h3><p>Of course, digital marketing automation can range from very simple tasks such as a series of emails to onboard new customers, or customer re-engagement activities, to more complex ones such as lead routing and handoff process. While the likes of automated email campaigns can be indeed handled in one single tool, the latter is a more complex scenario that, if done improperly, can result in lost opportunities and deals.</p><p>Imagine an organization that has several regional sales territories, each of which is responsible for following up on contact requests depending on personal availability and the lead’s geography.</p><p>The leads, generated by the marketing department, are coming through several channels: a webinar-registration page that is handled via <a href="https://www.elastic.io/connectors/citrix-gotowebinar-integration/">GoToWebinar</a>, a website contact form built on Gravity Forms, and a quotation request by actively emailing to a generic, role-based email address <em>sales@acmecompany.com</em> that lands in <a href="https://www.elastic.io/connectors/outlook-integration/">Outlook</a>.</p><p>To create a single point of reference, all of that lands in one single inbox, from where the marketing department should perform a proper qualification, maybe even feed the leads into a CRM system such as <a href="https://www.elastic.io/connectors/hubspot-integration/">Hubspot</a>, and then hand them over to sales reps based on their geographical location. Can you already sense the chaos, follow-up delays and lost opportunities? And by the way, this is not an entirely hypothetical scenario. I admit I have spiced it a bit for more drama, but the underlying storyline was inspired by this <a href="https://www.revenueriver.co/thecuttingedge/solving-a-complex-lead-routing-and-marketing-automation-challenge">blog article</a>.</p><p>So, what would be an example of digital marketing automation with respect to such a scenario?</p><p>First of all, we would need to automate the data transfer from all three touch points to the CRM system, where we can perform the necessary leads qualification through the so-called data enrichment. We could do that either by querying a custom-made database or other third-party services such as Sales Navigator, Swordfish AI or Voilà Norbert. Next, we would need to alert the responsible sales reps based on the geographical location of the leads — for example, either by sending them an email or a notification in Teams. The whole process will look like this:</p><p>The marketing team is happy because they can reduce the amount of manual work, the sales reps are happy because they get notified about new leads without any notable delay or confusion — it’s a win-win situation for both parties. And lead routing is just one example of digital marketing automation that is complex but incredibly effective and time-saving. Lead enrichment, lead nurturing, lead scoring… — there are so many other opportunities.</p><h3>What are the challenges of digital marketing automation?</h3><p>Let’s recap: digital marketing automation is an awesome thing because it helps align sales and marketing departments more effectively, reduces the manual overhead not only for marketing but also for sales colleagues, improves lead generation and lead management, and enables better data quality and data management overall. But. It is no accident that digital marketing automation is such a notorious topic, and the number one reason is poor quality of automations and missing data integrations (yes, technically, two reasons, but they go hand in hand).</p><p>Many software providers try to accommodate the needs of marketing specialists by offering additional features to automate lead nurturing campaigns, standard marketing workflows, lead scoring… Yet the recent <a href="https://www.oracle.com/de/cx/marketing/automation/what-is-marketing-automation/statistics/">report from Oracle</a> shows that there is still a gap between the vendors’ offers and the actual demand from marketing, with 50% of marketers wishing for an easier integration of the software products they buy with the company’s existing content management, customer relationship management (CRM) and enterprise resource planning (ERP) systems as well as to e-commerce storefront.</p><p>With 75 tools per company on average (not a joke, the number is taken from a <a href="https://podcast.zoominfo.com/public/57/Talk-Data-to-Me-78c09593/40f47a4e">2021 podcast episode by Zoominfo</a> with Scott Brinker as a guest), there are many integrations to expect.</p><p>And if that integration is not provided by the software vendor, who is supposed to build it? Well, oftentimes, the marketers are suggested to automate their workflows themselves. In fact, there is a whole range of services and tools such as Zapier, Workato, Integromat and Co that offer the so-called digital marketing automation recipes — pre-built automations for specific business processes such as “create a new lead in CRM X from the website form builder Y”. And that’s great!</p><p>But can they cater for just about any integration scenario you’ll need? Probably not. It depends on several factors, some of which being: the availability of the required connection points (e.g. is there a connector for, say, Swordfish AI?), the complexity of the workflow you want to automate (do you need data enrichment? Specific data validation? Sophisticated data routing?), the level of the technical understanding and user permissions required from you (do you need to provide an API key… A… what??).</p><h3>Why you’ll need your IT for proper data integration</h3><p>If you’re reading this article, and you managed this far (kudos to you), and you have a complex marketing workflow on your hands that you want to automate — I’m sorry to break it to you, but you’ll probably need help from your IT department for that.</p><p>And then your IT department has a choice — do they do that manually, connecting each marketing tool by hand or do they use a dedicated middleware such as an <a href="https://www.elastic.io/enterprise-integration-platform/">enterprise integration platform</a> as a service for that. Am I advocating now for our integration software tool? You got me, fellow marketer, absolutely. Is it worth the try? Oh, yes. Just check out how Krombacher, one of the leading German breweries, used the elastic.io iPaaS to <a href="https://www.elastic.io/integration-for-360-customer-view/">create a 360° customer view</a> with complex automation workflows that are event-based and work in real-time.</p><p>There are enough tips out there on how to implement the concept of digital marketing automation successfully. But if I may add just one more — include your IT department early in the process. They will be thankful to you for helping them avoid the accumulation of <a href="https://www.elastic.io/how-to-deal-with-shadow-it/">shadow IT</a> and you will be thankful to them for helping you automate your marketing activities smoothly and error-free.</p><p><em>Originally published under </em><a href="https://eio.guru/digital-marketing-atumation-media"><em>Marketing Automation Challenges</em></a><em> on February 25, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=360bf811ee94" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>