<?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 Rashmi Shetty on Medium]]></title>
        <description><![CDATA[Stories by Rashmi Shetty on Medium]]></description>
        <link>https://medium.com/@rashmi.shetty?source=rss-cd9f918b2da2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qmDNb7cuOLdQjlD1</url>
            <title>Stories by Rashmi Shetty on Medium</title>
            <link>https://medium.com/@rashmi.shetty?source=rss-cd9f918b2da2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:03:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rashmi.shetty/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[Engineering initiatives — Are we taming the technical debt for good? (Part 1)]]></title>
            <link>https://medium.com/@rashmi.shetty/engineering-initiatives-are-we-taming-the-technical-debt-for-good-part-1-911337ce5689?source=rss-cd9f918b2da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/911337ce5689</guid>
            <dc:creator><![CDATA[Rashmi Shetty]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 20:37:23 GMT</pubDate>
            <atom:updated>2023-12-18T20:37:23.628Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Engineering initiatives — Are we taming the technical debt for good? (Part 1)</strong></h3><p>In the dynamic realm of software engineering’s ever-evolving ecosystem, the concept of “tech debt” has become a common topic of discussion in all teams who deal with legacy systems. As we all know, most of us are not keen to solve them. Technical debts accumulate when expedited delivery methods or taking shortcuts to realize value faster lead to compromises being made on standards, leading to a complex web of sub optimal code that must be addressed eventually. If not managed properly, tech debt can snowball, causing detrimental effects on productivity, quality, and innovation of the team and the product/platform to scale further.</p><p>Enter the concept of <strong>“engineering initiatives</strong>” incorporated within our product development sprints. In this blog, I will be explaining why engineering initiatives are vital for reducing tech debt and ensuring a sustainable, efficient, and innovative product development process going forward. Please note, Engineering initiatives are not only limited to technical debt but also cover increasing <strong>developer productivity</strong>, which I shall cover in my next blog.</p><p><strong>Let us first understand the tech debt</strong></p><p>First, let us talk about tech debt. It is like the code we put together quickly to meet tight deadlines, the shortcuts we took to release a product, and the features we rushed without thinking about their long-term effects. These could be unstructured/dirty code, lack of optimal logging and alerting, insufficient guardrails, limited automated test coverage, sub-optimal architecture. As time goes on, tech debt becomes a problem for the engineering team, making things slower and increasing the risks of errors for both the engineering and support teams there by reducing the deployment frequency and increasing the change failure rate and thereby preventing future scalability. Also, it impacts the time spent in resolving incidents and thereby impacting the whole team’s time spent on the development in each sprint.</p><p><strong>If we let it go into what is the silent impact of the tech debt</strong></p><p>Well, I see tech debt is like a silent but persistent thief in the night, stealing the engineering team’s time and your product/platform’s potential to scale going forward. As technical debt accumulates in the development process, it increasingly burdens maintenance efforts, prolongs defect fixes, and hampers swift feature development. This slowdown disrupts user experiences, tarnishes the organization’s reputation, and jeopardizes customer trust, impacting the business’s credibility and potential for growth and scale.</p><p><strong>Then the next question… What Are Engineering Initiatives?</strong></p><p>Engineering initiatives encapsulate proactive measures undertaken to mitigate tech debt and elevate the overall codebase quality throughout the product/platform development journey. These initiatives encompass a spectrum of actions, such as ongoing code refactoring, bolstering code quality, integrating safety guardrails like SAST and DAST into the pipeline, implementing robust logging and alert systems, establishing comprehensive end-to-end automated testing suites, exploring innovative technologies, and addressing underlying architectural issues. These strategies collectively contribute to reducing technical debt and enhancing the resilience and efficiency of the product/platform.</p><p><strong>Let me explain the last two paragraphs with an analogy (some bit is inspired from our Method man).</strong></p><p>Imagine you are the architect of a beautiful bungalow, a digital masterpiece that you are crafting with care as you would like it to be listed in country’s best house. In the rush to meet tight deadlines, you decide to skip building a proper foundation and use cement to securely hold your bricks together. At first, your bungalow seems fine — it stands tall, looks beautiful from an exterior view and the initial floor plan meets your expectations. However, beneath the surface of our bungalow, a silent threat is slowly building up.</p><p>The missing foundation and cement represent the accumulating technical debt in the project. It is the consequence of taking shortcuts, neglecting code quality, not thinking from shift-left, not following the architect’s guidelines, and regularly making hasty decisions just to meet immediate deadlines of your customers/team individuals/stakeholders. Your bungalow, while appearing stable, is built on shaky ground underneath.</p><p>Now, imagine you are told to add a cool new floor to your bungalow. This is when you start noticing the problems caused by tech debt. Trying to build on the existing design plan becomes tricky. Without a solid foundation, the structure shows signs of stress in the surroundings. Your bungalow’s stability is at risk, and the idea of it collapsing is quite frightening to think about.</p><p>This scenario parallels the challenges of dealing with technical debt in software development. The lack of a solid foundation, analogous to neglecting code quality and best practices, jeopardizes the long-term stability of our codebase and quality. Introducing new features or making updates becomes a risky venture, like adding a new floor to a structurally unsound building.</p><p>Enter engineering initiatives, thesolution to enhance your digital bungalow/solution against the silent impact of tech debt. I would say that picture these initiatives as construction crews reinforcing the foundation, adding cement to secure the bricks (so that they don’t fall over), and implementing quality control measures such as SDLC guardrails. They represent the proactive steps taken to address and prevent technical debt.</p><p>By putting effort into engineering initiatives, you make sure your project is not just a reflection of its original plan but also a sturdy structure ready to grow. These initiatives, like a hardworking construction team, include making ongoing improvements, using automated testing, and maintaining standard of practices. They reinforce the foundation, allowing you to expand without worrying about things falling apart.</p><p>So, if you ever want to take shortcuts in your code or stakeholders force you to do so without understanding the implication of having a faster delivery by ignoring the guardrails, think of it as building a bungalow without a solid foundation. Sometimes, colleagues and stakeholders may act like they do not understand the value of putting effort into building that solid foundation, or be oblivious of the ticking timebomb, especially when we talk about engineering initiatives. The result — they may not include them in building products/platforms because they think there is no obvious way to measure the benefits/value to the customers. But, at the end of the day, it’s crucial (think as an encouragement) to remember how important these initiatives are and how they can make our platform/ product better for our customers and how to reduce your engineering team’s pain points.</p><p>Let me provide another example here. Establishing sufficient observability for a product or platform is pivotal. The absence of robust observability can result in a lack of insight into a system’s performance and health. This becomes an engineering initiative for a team to address. In the absence of effective monitoring, teams might struggle to promptly identify and resolve issues, leading to increased downtime, slower incident response, and challenges in understanding system behavior. Consequently, most of the team’s sprint work could be lost to incident resolution, causing them to miss their sprint goal and spend around 60% of their time on it.</p><p>Conversely, implementing a targeted observability initiative yields tangible benefits by providing real-time insights into the system’s operations through logging, metrics, and tracing. This enables proactive issue detection, swifter incident resolution, and overall enhanced system performance. Moreover, observability fosters data-driven decision-making, promotes collaboration between teams, and contributes to a more resilient and responsive engineering ecosystem optimizing operational efficiency and minimizing expensive disruptions..</p><p>Consider engineering initiatives as your team of builders, strengthening the base and making sure your digital creation/masterpiece is not only sustainable for a long time but grows smoothly with every new feature added onto the platform.</p><p><strong>The Significance of integrating Engineering Initiatives in build phase</strong></p><ul><li><strong>Alignment with product goals:</strong> Engineering initiatives aren’t just about refining code; they directly contribute to our product’s objectives. Addressing tech debt during sprint cycles paves the way for quicker feature development, improving user experiences and advancing our platform’s excellence.</li><li><strong>Shorter feedback loops: </strong>Incorporating engineering initiatives accelerates feedback cycles, aiding teams in making swift, informed decisions amidst changes. This strategy continuously reduces tech debt, ensuring our overall success.</li><li><strong>Prevention of accumulating tech debt: </strong>Proactively handling tech debt during work cycles prevents its rapid accumulation, averting potential long-term complications. Tackling issues early ensures quick resolution, preventing impediments on our path to sustained success.</li><li><strong>Enhanced collaboration:</strong> Inclusion of engineering initiatives fosters better collaboration among engineering, architecture, and product teams. This alignment ensures seamless development aligned with product plans, aiding in reducing tech debt and achieving overall success.</li><li><strong>Innovation and scalability:</strong> Minimizing tech debt creates a robust foundation for innovation and scalability. Quality code enables adaptability to evolving consumer demands, emerging technologies, and innovative business models.</li><li><strong>Customer satisfaction: </strong>Fewer technical issues in our product/platform enhance user experiences, resulting in increased customer satisfaction and retention, contributing to a positive reputation.</li><li><strong>Faster time to market: </strong>Effective management of tech debt through engineering initiatives grants a competitive edge, enabling faster product delivery and market responsiveness.</li></ul><p><strong>Measuring Success</strong></p><p>As we bring in engineering improvements during our sprint cycles, it is important to check if things are getting better. We look at how good the code is, if there are fewer bugs, and if we are getting things done faster. Success is not just a goal; it is seen in how well our code works, how confident our teams are, and how quickly we can deliver key features to our customers. This also impacts how frequently we can deliver features for faster feedback loop and reduced change failure rate when releasing on production. You will see a noticeable reduction in the occurrence of bugs and errors leading to an overall improvement in our product’s stability and performance along with increased customer satisfaction, improving our security posture and thus reducing risk for our business to grow. Along with these engineering initiatives can help to achieve product sustainability from both cost and future scalability to support business growth.</p><p>In short, a successful engineering initiative to resolve tech debt can be measured by assessing key performance indicators such as a reduction in reported defects and issues, improved code quality based on static analysis and code reviews, increased test coverage, decreased maintenance time, enhanced developer productivity, positive user satisfaction, stable releases with confidence, effective monitoring and alerting, a declining technical debt ratio, and favorable feedback from the engineering team. By monitoring these metrics on a regular basis, teams can gauge the tangible impact of their efforts, ensuring a healthier codebase, increased efficiency, and an overall improvement in the continuous SDLC.</p><p>Reducing tech debt is an ongoing process, and by using these measures, we are moving toward a future where our code is strong and can handle whatever comes our way.</p><p>To sum it up, adding engineering improvements/initiatives to our product/platform development is just not about fixing current issues/defects on the platform. It is about making sure our product/platform can keep up with our consumer expectations, our competitors, and the market, whilst being scalable and resilient</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=911337ce5689" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical details: BaseApi repository structure]]></title>
            <link>https://medium.com/hackit-development-team/technical-details-baseapi-repository-structure-811fbc8e1273?source=rss-cd9f918b2da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/811fbc8e1273</guid>
            <dc:creator><![CDATA[Rashmi Shetty]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 20:21:38 GMT</pubDate>
            <atom:updated>2020-08-02T20:21:38.306Z</atom:updated>
            <content:encoded><![CDATA[<p>Following our previous blog about building our API foundation correctly below is a technical explanation for Base API repository structure.</p><p>The BaseApi repository contains several folders and files, which are specifically placed to ensure the effective functioning of the API from the start. In this section, we will go through the files in the top-level, before exploring the contents of the folders.</p><h3>Top-level files</h3><p><strong>.editor config </strong>dictates our linting rules (our style guide). While these would not cause any specific issues with the program, the linting rules are used to make the code more consistent and readable. As such, our editor will cause builds to fail unless the issues are resolved. However, where the linting rules are making the build fail unnecessarily, specific codes can be suppressed.</p><p><strong>.gitignore</strong> contains a list of files which will be ignored when using Git as version control.</p><p><strong>BaseApi.sln</strong> connects the projects, specifically for Visual Studio on Windows. When creating the project we need to change the project names on lines 4 and 6.</p><p><strong>CODEOWNERS</strong> contains GitHub profiles who will automatically be asked for a code review when a pull request is opened through GitHub</p><p>Most of our projects at Hackney are open source. As such, we have a <strong>LICENSE</strong> in all our projects which states the conditions in which others can use our code for their own needs. We use the MIT license, which allows other developers to use, edit and distribute the code as they wish, but does not give Hackney any liability for code that we are not directly working on.</p><p><strong>MakeFile </strong>is part of a build automation tool which assigns a series of command-line commands to a simple command using make &lt;.PHONY&gt;. The most commonly used make command during development is make test, which creates the test database, then builds and runs the API-test project</p><p><strong>README.md </strong>is the front page of the project, which contains a summary of the project’s purposes, as well as instructions for use and development.</p><p><strong>Renamer.ps1 </strong>is a Powershell script that contains search-and-replace instructions which rename project files quickly, then deletes itself. Full instructions for using the renamer are found in the README</p><p><strong>Database.env </strong>contains environmental variables for our Postgres database</p><p><strong>Docker-compose.yml </strong>contains configurations which are applied to the Docker container for each service when it is spun up (or started).</p><h3>Non-API Folders</h3><p>These folders are important to the project but do not contain any of the code for the API or its tests</p><p><strong>/.circleci </strong>contains files relating to our continuous integration program, CircleCI. These are <strong>config</strong> for the necessary AWS connections and <strong>config.yml</strong>, which gives instructions on how CircleCI should build and test the project</p><p><strong>/database </strong>contains <strong>schema</strong>, which creates a barebones database for passing initial tests and provides a model for how a new API’s database could be set up. It also contains <strong>Dockerfile,</strong> which instructs Docker to copy the schema and to the Docker entry point</p><p><strong>/docs </strong>contains a .png diagram of the CircleCI workflow for use in the README.</p><p><strong>/terraform </strong>contains the Terraform file <strong>main.tf</strong> needed for CircleCI to run the project in the .Tests folder. It needs to be in the folder at this level in order to be picked up by CircleCI while the development, staging and production Terraform files for the API are in the main project folder. The purpose for including terraform files in each API project is to ensure that each API manages its own infrastructure and thus creating independent resources, that even if destroyed, will only affect that one given API.</p><h3>BaseApi.Tests</h3><p>All APIs at Hackney are built according to the principles of Test Driven Development. We use nUnit to write and run tests, which requires a dedicated folder for all tests.</p><p><strong>BaseApi.csproj</strong> is a .NET file which contains the assemblies and files included in the project and is used when running dotnet restore and when building the project. But the assemblies will only be related to the test functionality; anything that is required to run the BaseApi itself will be in the equivalent file in the BaseApi folder. It may be updated to add new assemblies where necessary</p><p><strong>ConnectionString </strong>retrieves database environment variables and returns them as a string to be used in the project StartUp and<strong> </strong>database tests.</p><p><strong>DatabaseTests.cs</strong>,<strong> IntegrationTests.cs </strong>and <strong>MockWebApplicationFactory.cs</strong> all contain methods which are run before and after tests in order to configure the web host and create a database context and a transaction, which ensures the tests give an appropriate response.</p><p><strong>Dockerfile</strong> contains instructions for Docker to build the container in which the tests will run.</p><p>Within the <strong>./V1 </strong>folder<strong> </strong>are the folders containing tests for the different elements of the BaseApi. The tests present in the BaseApi are used as a general health check to show that the API is working correctly, but also offer a suitable template with which we can build our own tests</p><h3>BaseApi</h3><p>The folder around which everything else has been built, the <strong>/BaseApi</strong> folder contains all of the files which are required to run the API throughout development into its final version. As BaseApi is an independent project from BaseApi.Tests, there are several files which appear in both folders, but the contents of the files are different and specific to the project’s purpose (testing or providing a service).</p><p>As in the .Tests folder, <strong>BaseApi.csproj </strong>is a .NET file which contains the assemblies and files which the project needs to include during its build process in order to function correctly.</p><p><strong>Dockerfile</strong> once again contains instructions for Docker to build the container environment where the program will run.</p><p><strong>LambdaEntryPoint.cs </strong>provides an entry point through which we can use AWS Lambda functions within our code. This allows us to have some functions which repeat across APIs extracted to AWS, rather than repeating the code during every new project</p><p><strong>Program.cs </strong>is a generic file used as an entry point into the program</p><p><strong>Startup.cs </strong>contains infrastructure necessary to start the API, including setting up security functions and registering Gateways to their Interfaces. This will need to be updated as Gateways and Interfaces are built to ensure they are within the scope of the project.</p><p><strong>appsettings.Development.json </strong>and <strong>appsettings.json </strong>are ASP.NET Core configuration providers.</p><p><strong>build.cmd </strong>and <strong>build.sh </strong>are build scripts which contain the logic and instructions for the project’s build steps</p><p><strong>serverless.yml </strong>is a configuration for the Serverless Framework for AWS</p><p><strong>/Properties</strong> contains launchSettings.json, which are instructions that describe how the software can be launched, including variables and commands to run.</p><p><strong>/Versioning</strong> contains files which discover metadata about the API (including versioning) from the controllers</p><p><strong>./terraform </strong>contains the <strong>main.tf</strong> files to set up the development, staging and production environments in AWS for the main BaseApi project (as opposed to the .Test project)</p><p>Last — but certainly not least <strong>— ./V1 </strong>contains the individual project files. These are divided into folders in line with the API playbook structure. Like the .Test folder, they contain the essential base code of the API, which will allow the BaseApi tests to pass, but, more importantly, also provide an example and template of the code style used by HackIt developers.</p><h3>Conclusion</h3><p>When creating new projects, we select the lbh-base-api as the repository template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUHxU1-Qiysk14N37eJfwA.png" /></figure><p>Using this consistent boilerplate template allows the project delivery team to build code quickly on a solid foundation, and ensures that all HackIt projects are consistent with the API playbook.</p><p>By: <a href="https://medium.com/u/e86def721776">Ben Reynolds-Carr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=811fbc8e1273" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackit-development-team/technical-details-baseapi-repository-structure-811fbc8e1273">Technical details: BaseApi repository structure</a> was originally published in <a href="https://medium.com/hackit-development-team">HackIT Development Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building our API foundation correct]]></title>
            <link>https://medium.com/hackit-development-team/building-our-api-foundation-correct-c029b444bb29?source=rss-cd9f918b2da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c029b444bb29</guid>
            <dc:creator><![CDATA[Rashmi Shetty]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 20:16:44 GMT</pubDate>
            <atom:updated>2020-08-02T20:16:44.762Z</atom:updated>
            <content:encoded><![CDATA[<p>In the software development world, we as developers always look out for reusability of code and how we can ensure we baseline our principles on it. However, achieving consistency and reusability can sometimes be a challenge as many teams work on different projects simultaneously and each team has its way of implementing the code. The support for these types of the codebase can be problematic as there are high chances that the team is not aware of different aspects and thereby adding a technical debt going forward.</p><p>So how do we resolve this issue? The solution we came up with is to have a base API template repository as a starter boilerplate code for API development.</p><p>Having a Base API code is the first step to achieve our principle of reusable and consistent programming. In short a boilerplate is a unit of writing or a template that can be reused over and over without change. We at HackIT emphasize on reusing our boilerplate code unless we are given a clear reason that it doesn’t meet the given needs..</p><p>It allows us to onboard new developers (internal or external ones) easily and also it ensures consistency across the board. In other words, a template is provided on Github that forms the basis for all our APIs. In GitHub, repositories can be marked as template repositories, which means that any new repository created could “copy” the same structure and files by using the template at the point of creation. This base API contains:</p><ul><li>All the tools and dependencies to get you up and running quickly</li><li>A wiki, where all tools and structures used are well documented.</li><li>Whenever a new feature needs to be introduced across APIs, we ensure to reflect that feature in the base API, so any new APIs created using the template will contain the change.</li><li>Example tests, to demonstrate test coverage that needs to be implemented</li><li>An easy-to-run script that makes renaming of files quick</li><li>README file that explains the deployment process</li><li>Pre-configured pipeline configuration (CircleCI)</li></ul><p>The first task in the development of any API is to create a new repository, by using the base API as a template (<a href="https://github.com/LBHackney-IT/lbh-base-api">https://github.com/LBHackney-IT/lbh-base-api</a>) and update to your project name:</p><p>In other words, we are ticking off below by using a base api codebase approach:</p><ul><li>Standardised and consistency of code across all projects.</li><li>Reduce development time by templating all files and code that can be reused.</li><li>Ease of onboarding new developers both internal and external agency developers.</li><li>Ease of understanding the codebase.</li><li>Have good and readable documentation</li></ul><p>We will be explaining the technical details of our Base API in our next blog.</p><p>By — <a href="https://medium.com/u/cd9f918b2da2">Rashmi Shetty</a>, <a href="https://medium.com/u/7286a8078924">Mirela Georgieva</a> &amp; <a href="https://medium.com/u/e86def721776">Ben Reynolds-Carr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c029b444bb29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackit-development-team/building-our-api-foundation-correct-c029b444bb29">Building our API foundation correct</a> was originally published in <a href="https://medium.com/hackit-development-team">HackIT Development Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why getting the right name for your APIs is so important]]></title>
            <link>https://medium.com/@rashmi.shetty/why-getting-the-right-name-for-your-apis-is-so-important-b8dddb781568?source=rss-cd9f918b2da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8dddb781568</guid>
            <dc:creator><![CDATA[Rashmi Shetty]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 20:21:42 GMT</pubDate>
            <atom:updated>2020-07-02T20:21:42.461Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Why getting the right name for your APIs is so important</strong></p><p><strong>Series 1- Chapter 2</strong></p><p>To continue from our previous blog post about our journey of defining platform &amp; service APIs and what we have learned from it, we knew that the next step in this journey without a doubt should be about data taxonomy.</p><p>Organizations are often locked down with legacy,mid-age, clunky, etc (;-)) databases. We have the challenge of tackling cases where our on-premises databases don’t have any basic database principles applied. In other cases, we found that people are still reluctant to bid goodbye to their tightly coupled processes and/or are scared of any process changes that might impact them. These databases are typically a developers’ nightmare especially when it comes to integration. I have also been in situations where we would like to open up the data from the source database and make it more available (of course in a secure manner). So when we’re building an API to unlock data from a legacy application or business process our challenge is: ‘What do we call that API so that it’s clear what data it presents without assuming how it should be used?’</p><p>So this is why data taxonomy is so important to the design of our Platform APIs.</p><p><strong>Data Taxonomy</strong> is a process of classifying your data and building a hierarchical structure which becomes the foundation for the API. And then, across our APIs, the taxonomy helps us explain the relationship between different data models.</p><p>We started our journey with identifying our core entities and tried to model different data domains around those core entities. Believe me, the workshop was well executed and we ended up with a nicely drawn spider web of all domains which are related to our core entities — People and Properties. This step was really important to build our landscape of Platform APIs and understand how the usage works between different services as we did not want to have our fingers burnt again. Also, it helped us to identify the development of future platform APIs as well.</p><p>We have picked up “<strong>People</strong>” as the core entity. But in a local government context, that means different things depending on the context. For example, the housing tenant might be different from the council tax payer and the holder of the parking permit. So we then refined that further as Resident Information API. I will be honest here, initially I thought this would be easy but slowly reality kicked in. In our discovery session, we realized we have 26 data sources and maybe more that store contact information about residents. The team was gobsmacked.. We immediately asked the question of how would we cope with this mammoth task? The team knew that this was a task that will involve a lot of iterations and improvements, so we decided to start with baby steps and learn from them.</p><p>We started with 6 initial datasets which we thought would be a good starting point -</p><ul><li>Adults and Children social care data,</li><li>Housing data set,</li><li>Housing benefits dataset,</li><li>LLPG data (holding the address information) ,</li><li>Flags we’d identified that might indicate someone was vulnerable (eg living alone)</li><li>Data about people who asked for help during COVID.</li></ul><p>The use case that followed was to provide a platform API that retrieves data from individual lines of business applications APIs in order to provide a consolidated view of all the data we hold about a given person across multiple data sources. We are also considering that as part of future iteration we should tackle storing audit logs of any changes made to the data.</p><p>Hackney has a track record of tackling this issue. Our Citizen Index is more than 10 years old and enables us to match people’s records across business applications and verify their identity. So next, we will build on our understanding of this to determine whether or how we create linkages between different records of people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XR46kHrlHQYa88JBao5v_A.png" /></figure><p>Having a data taxonomy designed for our APIs helps us to think in the right direction in terms of data relationships and building a knowledge model around different types of data domain. In other words, the taxonomy for a given domain should be the foundation step for any API development. Having an idea of the relationship between those domains will help you when designing your microservice architecture, simplifying development and integration.</p><p><strong>What’s Next?</strong></p><ol><li>Building the SwaggerHub definitions and best practices</li><li>Publishing our domain structure</li><li>Securing our data</li><li>Data Migration Mechanism</li></ol><p><strong>Appendix</strong></p><p>Data classification is the process of organizing the dataset into relevant categories which helps efficient data management, improved data security, and streamlined compliance audit when it comes to sensitive data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8dddb781568" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the data beast: Our Journey so far…]]></title>
            <link>https://medium.com/@rashmi.shetty/unleashing-the-data-beast-our-journey-so-far-b4e142e96bef?source=rss-cd9f918b2da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4e142e96bef</guid>
            <dc:creator><![CDATA[Rashmi Shetty]]></dc:creator>
            <pubDate>Wed, 24 Jun 2020 15:10:10 GMT</pubDate>
            <atom:updated>2020-06-25T20:50:15.486Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What do we aim to achieve via this blog?</strong></p><p>This blog is designed for HackIT and external organisations to evaluate our API-first strategy towards data domain modeling and how we approach our data needs! It will also give us the confidence to explore further in terms of architecture and data taxonomy. We understand the importance of reusability across service needs and designing the core architecture in such a way that it doesn’t add up more technical debt for the future.</p><p><strong>Why…How….What…???</strong></p><ul><li>Why are we building Platform APIs and what value ,in terms of return of investment,will they bring?</li><li>And, perhaps the biggest question, what are they?</li></ul><p>We all wish to have an advanced ecosystem that is led by data and I am sure it is a dream for all to have a scalable, robust, secure and resilient platform to achieve it. Whenever we build any service, these are questions that come to mind:</p><ol><li>Is the service highly available and reliable and how secure is our data?</li><li>How do we scale to meet the demand in traffic from our applications and ensure they’re reliable?</li></ol><p>But most importantly we would like to ensure that we follow these principles:</p><ol><li>We want to help residents and solve their problems via technology.</li><li>Try not to introduce more problems than what we have currently!</li><li>If the problems are huge, trying to find simple solutions is our first priority.</li></ol><p>Software engineers follow many principles and they change over time but two in particular have always resonated. Typically within the world of IT they take the form of acronyms.</p><p>Firstly “<strong>DRY</strong>” which stands for “<strong>Don’t repeat yourself</strong>”. At the micro level that means you shouldn’t have the same line(s) of code doing the same thing more than once within your code base. For example, if you connect to a database then do it <strong>ONCE</strong> and make it a reusable function. This makes code easier to change, test and maintain as well as reducing inconsistency. At the macro level this still holds true. You do not want the same thing being done by multiple code bases (think multiple APIs that do the same thing). Violations of the DRY principle are sometimes referred to as “WET solutions” (yes another acronym). “<strong>WET</strong>” can stand for “<strong>write every time</strong>”, “<strong>write everything twice</strong>”, “we enjoy typing” or “waste everyone’s time”.</p><p>This repetition between APIs isn’t just inefficient but it can lead to inconsistencies and also waste developer’s time by reinventing the wheel. For example, we already have more than one API which pulls out Cautionary contact data — which is information about residents who may be violent or are vulnerable. This data is vital for protecting both our residents and our officers. These APIs pull the Cautionary contact data from multiple data sources. In fact, within just <strong>ONE</strong> of those data sources (Universal housing) there are multiple different locations (database tables) where that data is held, which means there is a lot of room for error. A potential upshot of this is that an officer could get sent to do a repair at the home of a violent resident without knowing it <strong>EVEN</strong> though the council does have that information somewhere.</p><p>This is where Platform APIs come in. They will ensure that we are only writing code <strong>ONCE</strong> where that code accesses a particular dataset. If an application or a different API (what we are calling a “Service API”) needs to access the same dataset it will do so via the <strong>SAME</strong> Platform API. If we need to change the source for that dataset, or add an extension we can do so in <strong>ONE </strong>location and all of the clients will receive the change. The structure of the response data all of the clients receive will be identical and standardised. From a security perspective we will have <strong>ONE</strong> gateway into our data which means there is only <strong>ONE</strong> place we need to secure it.</p><p>The second key acronym is “<strong>KISS</strong>” which stands for “<strong>Keep it simple stupid</strong>” (more polite versions also exist). The simpler an API is, the less chance there is that something can go wrong with it. The simpler the API is, the easier it is to test. We want to ensure that the APIs we provide are built to the same standards,will be easy to use and so good that people prefer to use them.</p><p>We know for a fact that legacy systems tend to be stable but they can be slow-moving, sometimes offline during scheduled system maintenance and unable to cope with technology evolution. This results in services being non-responsive when the backend is busy with applying changes or any massive process is running. What happens, in the end, is that ICT gets questioned about service non-availability, residents are not happy, etc. So how do we solve these problems??</p><p>We engineers always think from the dimension of unraveling the data — make it securely open, it’s reusability, the approach taken, catering to similar needs, providing seamless user experience, and make it available for consumption purposes so the services can benefit from it. This allows us to get things going quickly and help us to think in the direction of problem-solving. If the approach becomes sneaky or manipulative then the goal is never achieved. In other words, try to build something which benefits people who use it.</p><p>This quote perfectly indicates our scenario.</p><p>“Nothing happens unless first a dream ” — Carl Sandburg.</p><p>So what is our goal and dream? — <strong>Have a series of Platform APIs used at their best!!</strong></p><p>We began our journey with APIs to achieve the above goals. We brought the concept of Platform APIs and Service APIs. Identified the benefits for each of the categories along with defining the criteria for each one. Reusability, consistency, quicker access, meeting the user, and data needs (the most important foundation for our approach), and the development of services were the key areas we were looking forward to achieving. The journey was not straightforward.We had to ensure that we are conveying our vision to our colleagues in an understandable, non-technical manner to ensure a collaborative approach. At the same time, we realized there is a mammoth task of understanding the domain model, what needs to be corrected while working with data that is dispersed with no relation whatsoever in the first place. We have got challenges in every direction. (sigh!!)</p><p>My point of action was getting the team trained on the latest technologies to build reliable Rest APIs which we all took advantage of and accepted as a challenge to excel. To my surprise, the team smashed it beyond my expectations. By this time we had a suitable platform in place for deploying our APIs and making it securely available to public consumption. We now continue to grow and improve our criteria for a successful framework.</p><p>We also have been challenged many times to think about front end services that would use our API. Our answer to this is — if the data is currently being used for a certain internal process why not make it more available? Why don’t we divide the domain into reusable components, which we know are likely to be the foundation to future services? For example, we know that building an application for residents to check their rent balance means that we need to retrieve “people data” (names), transactions, addresses, etc.Those sub domains can be exposed via individual Platform APIs that are then used for any other service that needs the same data. One of the questions we often get is why aren’t our APIs driven by specific user needs related to a front end/service? Because then the APIs would be what we call “Service APIs” — built according to specific needs around <strong>one service</strong>, which will prompt for duplication in APIs as they will be all very similar due to consuming the same data domains. For quick wins, these service APIs could look very attractive but in the long run, will they be useful? To how many services? Are we duplicating effort? Are we making more room for error? — food for thought!! Following HackIT’s principle of “Fail fast”, we have learned that quick wins often mean more work and they are not viable future solutions.</p><p>We strongly feel the data needs should drive API first strategy and not the frontend needs as they tend to change a lot in a given period. These data-driven APIs will shine when we have connected the cloud-based ecosystem using these APIs to their full potential, so why would we make them specific to a service?!! I understand there will be scenarios where we have to develop quick APIs but it shouldn’t always be the case!! However, there is another side of the coin as well. We have data sources that are ‘x’ years old and have no basic database principles applied whatsoever. Building APIs with these data sources as the main entities is a huge challenge because there are <strong>no strong principles for any data taxonomy for us to follow.</strong></p><p>We have currently partnered with Madetech &amp; AWS Solution Architect -Manish,to achieve the goal of producing an API that will bring resident information from several data sources, achieving a consolidated view.Our aim is <strong>not to create a new data source like Citizen Index, </strong>it is to provide a consolidated data view in real-time as retrieved by the APIs. This approach will also allow the data to be used for real-time analysis and visualization.</p><p><strong>What are we trying to achieve</strong></p><ol><li>All services consume Platform APIs, rather than directly speaking to underlying data sources, and thus centralizing the access to data.</li><li>Build data pipelines, to make existing data more available from on-premise data sources such as Qlik data etc.</li><li>Getting the data normalized and in a sensible format will be a dream to achieve as some of the data sources have no degree of relevant normalization.</li><li>Ensure open data standards are followed.</li><li>Have a catalogue of all cloud-based platform APIs in the API Hub. The API Hub should be one-stop for all APIs with the required authorization process in place.</li><li>Understanding our core objects well and defining data taxonomy around it and further data models to be built and stimulating innovation via our open APIs.</li><li>Exposing APIs by establishing data contracts as a step forward.</li><li>Engaging different services to understand the vision.</li><li>Secure our APIs in a way that does not open possibilities for misuse.</li></ol><p><strong>Things to keep in mind or something to explore in the future</strong></p><ol><li>How do we keep in mind API first when designing the relevant data pipeline.</li><li>As an organisation we have both structured and unstructured data available. I’ve been reading about how a data lake approach enables some organisations to use the data at its best and enables us to build complex business processes powered with advanced analytics. We have several case studies available which could benefit us to learn from. But we want to learn more!</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4e142e96bef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>