<?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 Dejan Vasic on Medium]]></title>
        <description><![CDATA[Stories by Dejan Vasic on Medium]]></description>
        <link>https://medium.com/@dejanvasic24?source=rss-d64485990e82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tR2zEkvoQe1tp44K.</url>
            <title>Stories by Dejan Vasic on Medium</title>
            <link>https://medium.com/@dejanvasic24?source=rss-d64485990e82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:03:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dejanvasic24/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[Software engineering in 2026]]></title>
            <link>https://medium.com/openunisau-engineering/software-engineering-in-2026-6fb1a621238b?source=rss-d64485990e82------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb1a621238b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Dejan Vasic]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 03:34:03 GMT</pubDate>
            <atom:updated>2026-03-23T03:37:51.259Z</atom:updated>
            <content:encoded><![CDATA[<h3>There is a bit of tension in the Software Engineering space.</h3><p>The way we work is changing rapidly and that’s making a lot of people justifiably uncomfortable. My goal here is to provide some relief from the polarising views, from cowboys running n agents at a time, to those still judging AI based on what it was two years ago, which is basically a lifetime ago now.</p><p>We need to face the fact that AI is not a fad. It’s not deterministic, but it’s not something you can dismiss anymore given the capability of the models and tools that have evolved. It’s also not our replacement. It’s a capability shift. As engineers, we’ve seen this many times before. New languages, frameworks, desktop to web, on-prem to cloud, microservices. So why does this feel harder?</p><h3>We love to code</h3><p>Whilst doing my computer science degree there was no other subject that drew me more into this profession. We had books, documentation, blogs and Google to find solutions. Reading and writing deep technical content is satisfying. That journey matters. It’s like a game of football. Even if you lose, the effort, the struggle, and the knowledge gained is the reward. Implementing a clean solution with best practices applied is the dopamine hit. So it’s understandable why this shift feels uncomfortable. Parts of that process are being compressed or abstracted away. There’s a real psychological factor here.</p><h3>Coding has gotten cheaper.</h3><p>Many egos have been bruised because AI can now generate code. But the value of production readiness hasn’t changed. How do we know the code follows conventions? Is it secure? Does it solve the right problem? Someone still needs to monitor, validate, and refine. The focus shifts toward:</p><ul><li>Reliability</li><li>Observability</li><li>Security</li><li>Maintainability</li><li>Alignment with business goals</li></ul><p>This should increase quality, not just speed or quantity.</p><h3>Engineer responsibilities</h3><p>There’s a lot of noise about jobs disappearing and most of it is clickbait. Engineering has always been more than just writing code. This is something I had become a lot more aware of around 10 years ago and prompted me to start using the Engineer title over simple developer or programmer. Here’s a list of my responsibilities I found myself doing in almost all the places I worked:</p><ul><li>Planning</li><li>Architecture</li><li>Breaking down ambiguity</li><li>Reviewing and validating</li><li>Security</li><li>Infra / DevOps</li><li>Strategic thinking</li><li>Documentation</li><li>Prototyping</li><li>Owning outcomes, not just output</li></ul><p>You could probably name a few more that is expected from a software engineer. None of it is new but it’s becoming unavoidable. AI amplifies these responsibilities. When code is easier to produce, it’s also easier to produce the wrong thing faster.</p><p>That means the real leverage comes from:</p><ul><li>Asking better questions</li><li>Defining clearer problems</li><li>Setting tighter constraints</li><li>Knowing what “good” actually looks like</li></ul><p>The role is shifting from implementation heavy to decision heavy.</p><h3>Determinism</h3><p>Using AI is not deterministic. Ask the same vague question twice and you’ll get different results. The skill isn’t just using AI; it’s reducing that ambiguity.</p><p>That looks like:</p><ul><li>Writing structured prompts instead of vague ones</li><li>Providing context, constraints, and examples</li><li>Iterating until outputs become consistent</li><li>Verifying outputs like any external dependency</li></ul><p>You don’t blindly trust a third party API. AI should be treated the same way so we need a tool that stays within boundaries, has monitoring and feedback loops.</p><p>Think of it less like a magic box and more like a junior engineer that needs guidance.</p><p>Planning is becoming a first class part of the workflow. When code is cheap, the cost shifts to thinking. The better you define the problem, constraints, and approach upfront, the more leverage you get from AI. Rushing in and figuring it out as you go still works, but it’s no longer the highest leverage path.</p><h3>We’ve been here before.</h3><p>Every major shift in software engineering has felt uncomfortable at first:</p><ul><li>New languages</li><li>Framework churn</li><li>The move to the web</li><li>Cloud and distributed systems</li><li>DevOps and platform thinking</li></ul><p>Each time, the narrative was the same: things are getting worse, the craft is dying, standards are slipping.</p><p>Each time, the engineers who adapted, who expanded their skillset instead of protecting a narrow definition of their role, ended up better off. This shift is no different.</p><p>AI is not replacing engineers. It’s raising the bar for what good engineering looks like.</p><p>Decisions matter more.</p><p>Responsibility is increasing, not disappearing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb1a621238b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openunisau-engineering/software-engineering-in-2026-6fb1a621238b">Software engineering in 2026</a> was originally published in <a href="https://medium.com/openunisau-engineering">openunisau-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Surveys to Scorecards: System Health Evolution at OUA]]></title>
            <link>https://medium.com/openunisau-engineering/from-surveys-to-scorecards-system-health-evolution-at-oua-216bc989e090?source=rss-d64485990e82------2</link>
            <guid isPermaLink="false">https://medium.com/p/216bc989e090</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Dejan Vasic]]></dc:creator>
            <pubDate>Thu, 01 May 2025 07:53:26 GMT</pubDate>
            <atom:updated>2025-05-01T07:53:26.016Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--v9BqHTTBdiWHTZbUEUKQ.png" /></figure><h3>Introduction</h3><p>In today’s fast-paced tech environment, system health monitoring has become essential for organizations striving to maintain reliability while evolving their architecture. The term “system health” encompasses how well our technical systems operate, how quickly we can deploy changes, and how resilient they are when issues arise. This concept has gained prominence through resources like Google’s DORA (DevOps Research and Assessment) metrics, which established industry standards for high-performing engineering teams.</p><p>Nicole Forsgren’s book “<a href="https://www.oreilly.com/library/view/accelerate/9781457191435/">Accelerate: The Science of Lean Software and DevOps</a>” further solidified these principles, demonstrating how deployment frequency, lead time, mean time to recovery, and change failure rate directly correlate with organizational performance. Companies like Spotify, Netflix, and Atlassian have documented their own journeys implementing similar frameworks, proving these aren’t just theoretical concepts but practical approaches that drive success.</p><p>As Martin Fowler noted in his writings on <a href="https://martinfowler.com/articles/microservices.html">microservice architecture</a>, splitting monoliths brings significant benefits but introduces new complexity. At OUA, we found ourselves navigating exactly this challenge. While decomposing our monolith seemed theoretically sound, we needed to ensure our systems remained healthy throughout the transition and beyond.</p><h3>The evolution</h3><p>Leading this initiative a few years ago gave me firsthand experience in how health metrics could create positive competition between teams. However, we wanted to avoid potential pitfalls:</p><ul><li>Teams focusing exclusively on metrics while neglecting product and business objectives</li><li>Leadership using metrics to evaluate team performance, or teams perceiving this was happening</li></ul><h3>First Version: Survey</h3><p>Our first attempt in Q1 2021 began with evaluating existing tools and resources. DORA metrics seemed ideal but required automated capture, and we couldn’t find a suitable off-the-shelf solution. Building something ourselves wasn’t feasible at the time.</p><p>After reflection, we clarified our purpose:</p><blockquote><em>Empower our teams to make better decisions on where to focus their energy by identifying riskiest systems (or areas within).</em></blockquote><p>Our MVP solution was a simple survey, with plans to automate metrics gathering later. For each Git repository, teams created an .oua folder containing a system-health.json file:</p><pre>{<br>  &quot;name&quot;: &quot;System Name&quot;,<br>  &quot;description&quot;: &quot;System Description&quot;,<br>  &quot;owner&quot;: &quot;Team Name&quot;,<br>  &quot;health&quot;: {<br>    &quot;deployment-frequency&quot;: &quot;&gt;=1 day&quot;,<br>    &quot;lead-time&quot;: &quot;&lt;=1 day&quot;,<br>    &quot;3rd-party-vulnerabilities&quot;: &quot;&lt;=5&quot;,<br>    &quot;system-complexity&quot;: &quot;&lt;=5&quot;,<br>    &quot;test-coverage&quot;: &quot;&lt;=80%&quot;,<br>    &quot;time-to-restore&quot;: &quot;&gt;=1 day&quot;<br>    // and more...<br>  }<br>}</pre><p>The real value came from the discussions this prompted, encouraging teams to think about metric measurement and potential automation without worrying about comparisons or leadership perception.</p><h3>Version 2 and 3: Miro</h3><p>Following organizational restructuring, we had fewer teams managing systems they weren’t familiar with. Some systems were embedded in monoliths, hosted by third parties, or lacked Git repositories altogether.</p><p>We pivoted to a visual approach using Miro with a traffic light system to represent health. Teams divided work by assigning systems to individual members who presented findings to the group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pKS_wheBZnOSwz1s7QkqaQ.png" /><figcaption>Sample view of our V2 and V3 health assessment</figcaption></figure><p>This less technical approach clearly identified risky systems and the reasons for investment. In one case, we established a dedicated team to focus on a business-critical system where we previously had limited control.</p><h3>Version 4: DataDog Integration</h3><p>At OUA, we rely heavily on DataDog for logs, traces, monitors, RUM, and soon on-call management. Their recently added Scorecards feature perfectly fits our needs by combining automated metrics with custom criteria.</p><p>We can leverage any DataDog metrics, including:</p><ul><li>Deployment frequency</li><li>Documentation status</li><li>Monitors</li><li>SLOs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*lRKF01jpgNcQ8jThk8Ltlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*NxKloy4Or7fSNdEYz_e_Xw.png" /></figure><p>Best of all, we’ve returned to our original concept of capturing details in code repositories:</p><pre>apiVersion: v3<br>team: a-team<br>kind: service<br>metadata:<br>  displayName: Main Web Application<br>  name: web-app<br>  owner: a-team<br>  type: web<br>  dependsOn:<br>    - service:service-a<br><br>extensions:<br>  oua:<br>    scorecard:<br>      rules:<br>        - ruleName: &#39;Uses preferred languages and frameworks&#39;<br>          rating: pass<br>        - ruleName: &#39;Uses a language version with active maintenance support&#39;<br>          rating: pass</pre><p>Our pipelines now include a custom action that updates DataDog scorecards when merged to main. This eliminates manual data collection, allowing us to focus discussion on slow-moving custom metrics while others update automatically.</p><p>For systems without DataDog integration or Git repositories, we can create entries in the DataDog console for manual management. As we continue decomposing monoliths, we expect all domain services to eventually be represented in DataDog scorecards.</p><h3>Engineering Principles as Health Indicators</h3><p>It is vital as an engineering group to establish clear principles, sensible defaults, and coding conventions. At OUA, these standards play a pivotal role in determining whether a system is healthy.</p><p>Our engineering principles aren’t static documents gathering digital dust. Instead, they evolve alongside our technical landscape and organizational learning. When evaluating system health, we consider how well a system adheres to these principles:</p><ul><li><strong>Consistent Architecture Patterns</strong>: Does the system follow our agreed-upon architectural approaches?</li><li><strong>Coding Standards Adherence</strong>: Is the codebase consistent with our language-specific conventions?</li><li><strong>Technology Selection</strong>: Does the system use our approved technology stack, or if not, is there documented justification?</li><li><strong>Security Guidelines</strong>: Are security best practices followed according to our internal standards?</li></ul><p>Github Copilot now have a feature that allows us to <a href="https://docs.github.com/en/copilot/using-github-copilot/code-review/configuring-coding-guidelines">setup our coding guidelines</a>. Having done the work, we are now in a position to leverage AI to aid in automatic review to ensure any new changes meet our criteria.</p><h3>Conclusion</h3><p>Years of exploration in this space have taught us what matters most for our systems’ health and we would highly encourage this practice at any organisation with a growing ecosystem of services. The benefits include:</p><ul><li>Confidence in creating new services and continuing our architectural evolution</li><li>Easy identification of at-risk systems requiring attention</li><li>Streamlined onboarding for new engineers who can quickly understand system performance</li><li>Consolidated tooling for observability, health monitoring, incident management, and alerting</li><li>Encourages better discussions about what good looks like leading to better decisions</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=216bc989e090" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openunisau-engineering/from-surveys-to-scorecards-system-health-evolution-at-oua-216bc989e090">From Surveys to Scorecards: System Health Evolution at OUA</a> was originally published in <a href="https://medium.com/openunisau-engineering">openunisau-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using AI in Technical Interviews]]></title>
            <link>https://medium.com/openunisau-engineering/using-ai-in-technical-interviews-b87c4df6a773?source=rss-d64485990e82------2</link>
            <guid isPermaLink="false">https://medium.com/p/b87c4df6a773</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technical-interview]]></category>
            <dc:creator><![CDATA[Dejan Vasic]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 00:25:37 GMT</pubDate>
            <atom:updated>2025-02-06T00:25:37.470Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x0YtcFY4aFhsVRg7" /><figcaption>Photo by <a href="https://unsplash.com/@emilianovittoriosi?utm_source=medium&amp;utm_medium=referral">Emiliano Vittoriosi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>At OUA, we recently experimented with something unconventional during our technical interviews. Instead of asking candidates to turn off AI tools, we encouraged their use. The results? Surprisingly positive! Here’s why we think AI in technical interviews gives us better insights into potential hires.</p><p>Different companies have different needs. For instance, Anthropic, despite being an AI company, <a href="https://simonwillison.net/2025/Feb/2/anthropic/">specifically prohibits AI use in their technical interviews</a> because they need candidates with deep technical knowledge independent of tools. This makes perfect sense for their context — they’re hiring people who will be building AI systems themselves. Our approach isn’t a one-size-fits-all recommendation; it’s what works for our specific needs in product engineering.</p><h3>AI is Here to Stay</h3><p>Let’s face it — AI tools are now part of our daily lives, and they’re only getting better. At OUA, we embrace tools like ChatGPT and GitHub Copilot across our engineering teams. We’re always cautiously exploring new AI products because they boost our productivity and open up fresh learning opportunities.</p><p>So we thought: if AI is part of our toolkit, why not see how candidates use it too?</p><h3>Problems Over Q&amp;A: A Better Interview Approach</h3><p>Having been on both sides of technical interviews, I know how painful it can be to face rapid-fire questions about textbook definitions or obscure framework details. While some companies still stick to this approach, we’ve found that presenting candidates with real problems yields much better results. This could involve building a web application from scratch and seeing how far they get.</p><p>Here’s why problem-solving interviews work better:</p><ul><li>They naturally lead to discussions about relevant concepts like SEO, accessibility, and design systems</li><li>Technical questions flow organically within context rather than feeling like a pop quiz</li><li>Progressive problems let candidates show their depth of knowledge</li><li>Most importantly, we see how candidates actually approach problems:</li><li>Do they clarify assumptions?</li><li>Are they comfortable asking for help?</li><li>Can they balance strong opinions with flexibility?</li></ul><h3>Why We’re Giving AI a 👍</h3><p>Our experiment with AI in interviews has taught us some valuable lessons:</p><h3>Speed to Solution</h3><p>Our recent hackathons showed that teams using AI could build working prototypes, deploy to AWS, and even write code in unfamiliar languages in just 2–3 days. This same efficiency in interviews means candidates can build complete applications instead of just writing basic functions, giving them more opportunities to showcase their skills.</p><h3>Focus Areas Matter</h3><p>When candidates have AI help with basic coding, we see where they choose to spend their time. Do they focus on pixel-perfect styling? That might indicate they’ll bring valuable UI expertise to the team and is super helpful if that’s what they are missing at the time.</p><h3>Decision-Making Skills</h3><p>AI offers many solutions, but can candidates pick the right one? We’ve seen this reveal both concerning choices and impressive insights. Since LLMs aren’t perfect, strong candidates demonstrate their judgment by critically evaluating AI suggestions. In the past stackoverflow and Google were very trusted sources, but AI seems to have pushed that boundary further for some more than others.</p><h3>Prompt Engineering</h3><p>When candidates use chat-based LLMs, their prompts reveal a lot about their problem-solving approach. Just as we help colleagues fix code typos, we can see how effectively candidates communicate with AI tools. Do they provide enough context to the problem? Is a Chat GPT conversation selected over inline CoPilot? It’s a nice opportunity to learn from others on their approach.</p><h3>Better Discussions</h3><p>Instead of watching someone struggle with syntax or documentation, AI enables deeper conversations about architecture, trade-offs, and alternative approaches. This leads to more engaging and insightful interviews. We were surprised at how many times we stopped to chat about a solution and didn’t end up finishing a task but really enjoyed discussing the concepts involved.</p><h3>Key Learning: In-Person Only</h3><p>For now, we’re sticking to in-person interviews. With voice-recognition tools that can query LLMs in real-time, we’re not yet confident in our ability to prevent AI misuse in remote settings. That is a bit of a learning at the moment, but things could change in the future.</p><h3>Beyond Code</h3><p>Technical interviews, especially for senior roles, are as much about communication as coding. Since we prefer collaborative solution design over top-down architecture, we need people who can share ideas, debate constructively, and challenge assumptions thoughtfully. This can be achieved by stepping away from the keyboard and presenting problems that require white boarding.</p><h3>In conclusion</h3><p>Using AI in technical interviews is undoubtedly a contentious topic in our industry. At OUA, this approach works well for specific product engineering roles where we value practical problem-solving skills and tool proficiency. However, we recognize it’s not suitable for every role or organization — even within OUA, we adjust our interview process based on the position’s requirements. The key is understanding what skills and knowledge are truly essential for the role you’re hiring for, and designing your interview process accordingly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b87c4df6a773" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openunisau-engineering/using-ai-in-technical-interviews-b87c4df6a773">Using AI in Technical Interviews</a> was originally published in <a href="https://medium.com/openunisau-engineering">openunisau-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MonoRepos powered by Turborepo]]></title>
            <link>https://medium.com/openunisau-engineering/monorepos-powered-by-turborepo-3f22d39c3d28?source=rss-d64485990e82------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f22d39c3d28</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[turborepo]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Dejan Vasic]]></dc:creator>
            <pubDate>Tue, 26 Nov 2024 22:39:28 GMT</pubDate>
            <atom:updated>2024-11-26T22:39:28.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8I0RuzidLKf1vddxDW-Gjw.jpeg" /></figure><h3>Introduction</h3><p>At Open Universities Australia (OUA), we’re navigating the space between Monoliths and Microservices, striving for a sweet spot that keeps our systems robust yet flexible. Our journey through the <a href="https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/">infamous cloud strike saga</a> revealed the resilience of our architecture — parts of our site remained operational even when others didn’t. While our move away from a Monolithic architecture has had some great benefits for our users, the maintenance of many codebases had some growing pains we needed to address.</p><h3>The Challenge of Scaling and Maintaining</h3><p>Each service, with its unique repository and deployment process, can become a silo that hampers maintenance and slows down updates, especially in fast-moving ecosystems like JavaScript. This challenge is magnified when dealing with multiple cloud providers and programming languages. At OUA, we’re constantly refining our engineering practices to address these issues, aiming for sensible defaults that streamline our workflows but the pain never really went away.</p><h3>Moving to mono repos</h3><p>Yes, we jumped on the MonoRepo bandwagon. Given the majority of our codebases are written in Typescript, we also made a conscious choice to stick with NPM and use the relatively <a href="https://docs.npmjs.com/cli/v8/using-npm/workspaces">new workspaces</a>. Benefits were recognised immediately in the following areas:</p><ul><li>Single pull requests to make a feature change across multiple apps or packages. Previously in a multi repo environment, we needed careful release coordination.</li><li>Similar to the above third party dependency updates including breaking changes need to be addressed only once.</li><li>Centralised build and deploy pipelines.</li></ul><h3>Speed it up. Just add Turbo.</h3><p>By centralizing our pipelines, we encountered an unexpected challenge: our release process became significantly slower. Each package now had to sequentially pass through linting, testing, packaging, and releasing stages, creating a bottleneck in our development workflow. We quickly realized this was likely a common issue and began researching potential solutions. Our search led us to Turborepo, which proved to be the precise solution to our pipeline performance problems.</p><p>Turborepo simplifies configuration through its turbo.json schema while intelligently leveraging existing package.json files to map out the dependency tree across your project&#39;s packages. This approach allows Turborepo to dynamically identify which tasks can be executed in parallel, ultimately optimizing and accelerating the build pipeline.</p><p>In addition, Turborepo is actually smart enough to know which task can also be skipped altogether. By using a hashing mechanism it will run the tasks when it detects changes. One of our MonoRepos has over 7 packages and the deployment pipeline can take as little as 8 mins to get a change to production! That’s not a bad outcome.</p><p>We definitely recommend Turborepo based on our experience so far and I’m sure we are not selling it enough.</p><h3>Merging Monorepos across Teams: A Case Study</h3><p>We decided to take things even further by creating a MonoRepo with apps and packages maintained by two distinct teams. The main reason behind this strange choice was simple. Both teams had applications in the same domain that manage enrolments for students.</p><p>During this bold move, we encountered a blend of technical and cultural challenges. This endeavour wasn’t just about combining codebases — it was about aligning our teams under a unified development process without sacrificing productivity or morale.</p><h3>Strategy and Execution</h3><p>For context, both repo’s had a blend of Node and Typescript front end applications powered by Next.js, two serverless API’s and a few libraries each.</p><p>Our first step was to harmonize our tooling and processes. We meticulously compared and aligned our GitHub pipeline configurations, ensuring a seamless integration environment. The alignment of turbo.json and package.json files was crucial to avoid conflicts and ensure dependencies were managed consistently. Given we make use of <a href="https://docs.npmjs.com/cli/v7/using-npm/workspaces">NPM workspaces</a> we anticipated very little conflicts.</p><p>Once that was done, we used the following git merge strategy:️</p><pre>cd project-a-directory<br>git checkout main<br>cd ../project-b-directory<br>git remote add project-a ../project-a-directory<br>git fetch project-a<br>git merge --allow-unrelated-histories project-a/master<br>git remote remove project-a</pre><p>This technique allowed us to blend two histories into a single, coherent timeline.</p><h3>Overcoming Obstacles</h3><p>One significant hurdle was ensuring that a failing main branch wouldn’t halt deployments across all applications and packages. To mitigate this, we refined our CI pipeline to isolate failures, allowing unaffected projects to proceed with deployments.</p><p>Communication between teams was streamlined through strategic Slack notifications. Employing a bot, we could alert relevant teams about build failures without manual intervention. Here’s a simplified version of how we configured our GitHub Actions for Slack notifications:</p><pre># Simplified GitHub Actions snippet for Slack notifications<br>slack_notify:<br>  runs-on: ubuntu-latest<br>  steps:<br>    - name: Post failure alert to Slack<br>      uses: slackapi/slack-github-action@version<br>      with:<br>        message: &quot;Build failed for Project X. Please check.&quot;<br>         env:<br>          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}<br>        with:<br>          channel-id: &#39;team-a-alerts,team-b-alerts&#39;<br>          payload: |<br>            {<br>              &quot;blocks&quot;: [<br>                {<br>                  &quot;type&quot;: &quot;section&quot;,<br>                  &quot;text&quot;: {<br>                    &quot;type&quot;: &quot;mrkdwn&quot;,<br>                    &quot;text&quot;: &quot;:redsiren: *Alert: Deploy pipeline is broken*\n*Branch:* ${{ github.ref_name }}\n*Action:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Commit hash:* ${{ github.sha }}\n*Author:* ${{ github.actor }}&quot;<br>                  }<br>                }<br>              ]<br>            }</pre><p>By customizing our notification system, we ensured that information flow was both efficient and targeted, minimizing noise and focusing on actionable insights.</p><h3>Artefact Naming and CODEOWNERS</h3><p>Adopting a consistent naming convention for artefact, such as build outputs and test results, was another critical step. This approach not only facilitated easier tracking and management of artefacts but also improved the clarity of our CI/CD pipelines. We simply had to leverage Github action wildcard syntax to ensure everything was packaged accordingly:</p><pre>      - name: Save build artifact<br>        uses: actions/upload-artifact@v4<br>        with:<br>          name: ${{inputs.app-stack}}-web-build-output-${{inputs.environment}}<br>          path: |<br>            ./apps/*/build<br>          retention-days: 7</pre><p>Furthermore, we leveraged GitHub’s CODEOWNERS feature to assign clear ownership of specific applications and packages to respective teams. This structure not only clarified responsibilities but also streamlined the review process for changes, ensuring that the right eyes were on the right code at the right time. Here’s what that looks like:</p><pre>* @org/team-a @org/team-b<br>apps/service-a/ @org/team-a<br>apps/service-b/ @org/team-b</pre><h3>Build and deploys by stack</h3><p>One problem that was anticipated came to light in the first week even though it was meant to be an edge case. Once we merged PR’s to main, our expectation was that deployments should work and not block all apps in the repo. When a system is in its beta phase though it may require many changes in infrastructure that cause failures in the pipeline. We suffered a lot of this pain almost regretting this initiative.</p><p>Turborepo filters to the rescue! We solved this by grouping some apps stacks together. In Github actions, this means they have their own deployment workflows.</p><p>So even though our turbo.json has a common deploy config, separate workflow actions provide turborepo filters to target specific services.</p><pre>&quot;deploy&quot;: {<br>  &quot;dependsOn&quot;: [&quot;build&quot;, &quot;^deploy&quot;],<br>  &quot;outputs&quot;: [&quot;cdk.context.json&quot;, &quot;cdk.out/**&quot;]<br>},<br></pre><pre>npm run deploy -- --filter=service-a --filter=service-b</pre><p>This setup meant that once a service had demonstrated stability and was fully integrated into production, we could consider consolidating its deployment process with others, streamlining our workflows even further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/0*Xv66baSIge3jP3r_.png" /></figure><h3>The Outcome</h3><p>Through careful planning, collaboration, and execution, we successfully merged two monorepos, paving the way for a more integrated and efficient development process. This case study exemplifies how technical challenges, when approached with a clear strategy and open communication, can lead to outcomes that significantly benefit the team’s workflow and the organization’s goals.</p><h3>The Benefits of Our Approach</h3><p>The consolidation into monorepos powered by Turborepo has yielded tangible benefits:</p><ul><li><strong>Efficiency in Builds and Deploys:</strong> Parallel builds and deployments didn’t increase pipeline times, proving the efficiency of our approach.</li><li><strong>Unified Configuration:</strong> Adopting shared configurations for tools like TypeScript, ESLint, and Prettier helped standardize our development practices. While aligning ESLint configurations was a mammoth task, correcting over 1000 errors, it ultimately led to improved code quality.</li><li><strong>Shared Deployment Tools:</strong> By housing ECS and Lambda applications within the same monorepo, we’ve been able to reuse deployment logic and configurations, enhancing our operational efficiency.</li><li><strong>Consistent Tooling:</strong> The move towards an opinionated setup has streamlined onboarding for new developers and accelerated secure, confident development across projects.</li></ul><h3>Wrapping Up and Looking Ahead</h3><p>As we reflect on our journey towards a more integrated repository structure, the question arises: should we consolidate further into a single, massive monorepo? While tempting, we recognize the importance of maintaining domain coherence without over-centralizing. Our path forward involves careful consideration of domain relevance, ensuring that our repository structure supports efficient, effective development practices across OUA.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f22d39c3d28" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openunisau-engineering/monorepos-powered-by-turborepo-3f22d39c3d28">MonoRepos powered by Turborepo</a> was originally published in <a href="https://medium.com/openunisau-engineering">openunisau-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The engineering journey @ Open Universities Australia]]></title>
            <link>https://medium.com/openunisau-engineering/the-engineering-journey-open-universities-811cdc384b8?source=rss-d64485990e82------2</link>
            <guid isPermaLink="false">https://medium.com/p/811cdc384b8</guid>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Dejan Vasic]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 00:12:08 GMT</pubDate>
            <atom:updated>2024-11-11T05:25:57.023Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>OUA is a marketplace for higher education in Australia with a unique capability in enrolling students into many leading Australian universities and managing their studies in one platform.</blockquote><p>During my interview with long-standing members of the organisation back in 2020, they didn’t hold back in describing the problems facing them on the account of a monolith application riddled with complex bugs. Their honesty was definitely appreciated. After being offered a senior engineer position it’s difficult to feel anything less than optimistic and ready to tackle anything that lies ahead.</p><p>Until…</p><h3>The mountain with burning fires</h3><p>If the road ahead was to tackle technical issues alone, then this post would have been a little less enjoyable.</p><p>OUA established <a href="https://www.sitecore.com/">Sitecore</a> as their main web platform. Having invested over 12 months that included a major upgrade, nobody wanted to hear about another “re-platforming project” and this was understandable. Despite being made with the best available information at the time, the decision to use the system resulted in an overpriced and inappropriate solution for the complex domain.</p><p>There were enough hot spots to render a freeze on a product roadmap which ended up looking like a bunch of small and fast follow features. Product were eager to finally start experimenting on a platform they thought was ready. The engineers were mercenaries without a well-understood common goal but were happy enough to stay passive and go with the flow even though bug fixes were the main priority. At this point, many would have walked away from the opportunity to feel true success in turning everything around.</p><p>The culture and process issues were further fuelled by the technology issues facing us:</p><p>🧠 Complicated codebase to understand and navigate</p><p>🔢 Hundreds of feature flags and dead code hanging around like a bad smell</p><p>😕 Unpredictable build and deployment pipelines with flaky tests</p><p>⏲️ Pipelines would take up to a day to release changes to production</p><p>🧑‍🤝‍🧑 Multiple teams sharing custodianship of the same system that at times ended with a blame culture or shifting ownership on who should fix what</p><p>😫 Sitecore and legacy Dot Net Framework (which has been phased out now), required extensive training to learn and understand how to render a simple view</p><p>🍲 There were multiple attempts to simplify the UI in the same Dot Net solution but were never really finished so it all ended up being a really awful soup</p><p>⚠️ Logs that contained so many errors, that it was difficult to identify the severity of each and so I questioned whether it was being observed</p><p>Looking at some of the points above, it’s usually regarded as regular technical debt in any organisation. But combining them together at once is quite overwhelming. What really bugged me though, was that this was meant to be a “new” system.</p><h3>Shifting the engineering culture</h3><p>A chief engineer arrived. It was a statement of intent by the organisation that a better tech culture with a solid engineering vision was needed. We were in good hands.</p><p>Having someone with an engineering background at that level was a blessing. They implemented good practices with immediate effect that included:</p><ul><li>Collaborative decision-making processes</li><li>Empowering teams with ownership of their product direction and architecture</li><li>Engineering principles like “you build it you own it”</li><li>A well-understood incident management process</li><li>Hiring senior engineers and introducing roles like principal and staff engineer really paved the way for technical leadership without necessarily having to manage employees</li></ul><p>This was the start of a new era, and I quickly realised it was a good time to be around and be involved in not only coding some new exciting systems, but to be part of crafting a better engineering culture. Having just departed an awesome tech company in Seek, I felt those experiences could come in handy.</p><h3>The success stories</h3><p>We knew that picking exactly the right part of the domain to strangle was going to be key to success. This would help us earn a lot of trust from other trades. So we targeted the Course search.</p><p>OUA is really a marketplace and at the heart of that is a great search experience. At the time, it was painfully slow with up to 5 seconds response time and a very clunky UI to go with it. Painful to maintain and painful to use. It was a great candidate to rebuild given the decent traffic for experimentation and the simplicity of it being a single page.</p><h3>Search</h3><p>Embarking on a new project alone and leaving the other fires burning was not going to fly. Luckily, we had a team that was willing to start really owning this system. After some time, not only had root causes been solved but better practices, test coverage and monitoring improved. The system was actually becoming maintainable. It was quite evident now that we had the talent who really cared about their craft and were pragmatic in solving any problem thrown at them.</p><p>We got to work on the course search in the meantime and we had a solution. Using the strangler pattern (running a new system side by side) we could simply divert traffic to a different application entirely within our infrastructure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYje1dy4yvS3RfHxqmpu3g.png" /></figure><p>It worked like a charm. We didn’t do anything groundbreaking really. And decided to be sensible about tech choices so we went with industry standards like<a href="https://nextjs.org/"> Nextjs</a>, React Typescript and Node GraphQL API hosted in AWS Lambda. Session and cookies were working because it was on the same domain.</p><p>We set up an experiment to compare the systems and the winner was obvious.</p><p>Eventually, a more technical post will follow on this. But the following are definitely worth mentioning:</p><ul><li>Search <strong>response times</strong> under 100ms on average</li><li>Pipeline and <strong>production deploy</strong> with full end-to-end testing in ~20 mins</li><li><a href="https://web.dev/vitals/"><strong>Web core vitals</strong></a> (metrics used for measuring website performance) were smashed and all in the green</li><li><a href="https://algolia.com/">Algolia</a> was chosen as the backend search index which provided a wealth of features to experiment with like personalisation</li><li>Leveraging Nextjs server-side rendering, the team realised huge improvements we could make to SEO and we followed up soon after with much success</li><li>Last but not least a fully accessible UI</li></ul><p>This had set the gold standard. By focusing on not just building a good product but enabling a strong engineering culture, we were set up for success in so many ways. Decision-making was kept within the team about tools and third-party services, instead of relying on someone outside (probably with “architect” somewhere in their title). We were empowered and felt our confidence rise when we proved our value. Algolia and Nextjs proved great choices as they enabled capabilities that were not even considered earlier. It felt that OUA was making leaps and strides in this area.</p><h3>React component library and homepage</h3><p>Like many other organisations that need to create web front-ends in React, we struggled to decide on tooling. Do we build our own component library or go with something open-source? Do we need our own design system? How was this not already there? We knew this was going to be a lot of work, but we found a way to collaborate on this internal cross-team project which ended up being a building block and foundation for others.</p><p>Once the pattern was set, other teams had the tools and understanding of how to tackle similar projects. Homepage soon followed and reaped similar benefits.</p><p>It’s worth noting that Sitecore still played a pivotal role in the process. It was still the main source of content data where content authors did their magic. Leveraging Sitecore’s new GraphQL API available in Sitecore 9 we were able to query the content tree at either build time or request time to render what we need. Another win-win. Sitecore finally is starting to fill the role of a CMS (content management system) which is one of our long term goals.</p><p>Given most of the apps opted for build time, even when larger parts of the site had gone down which was still served by Sitecore, the homepage and search remained standing. We were no longer impacted by a large monolith going down and bringing everything with it.</p><h3>Identity</h3><p>The biggest component remaining was the Enrolment process. This is by far the most complex in terms of both domain and technical implementation to re-platform but first, identity was required for a logged-in session. As usual, Sitecore was the platform for everything. We did what we thought is logical. Made a decision document to evaluate options, did some evaluations and eventually selected and integrated with an Identity Provider that offers <a href="https://oauth.net/">OAuth</a>. The picture now looked more like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WP2ClGK1cjJcY9pOQjDTaQ.png" /></figure><p>How hard can it be right? What can go wrong?</p><p>The obstacles were far more complex than Search. Dealing with security, privacy and user migration was a little intimidating but left us in a position where the domain was no longer a limitation and I’m really happy to say that we are now in production. We are now free to build apps outside of Sitecore with access to the currently logged-in user.</p><p>Today, as it stands, enrolment is the last remaining system and if we stopped here I do wonder at times whether we’ve left it in a worse place than before. We’ll need a pragmatic and elegant solution and it will be exciting to see this happen.</p><h3>The challenges ahead</h3><p>We have been making good progress but the challenges continue as personnel and market conditions change. Today, the battles are between production support, technical quality, a growing backlog, extracting enrolment from Sitecore, and learning our system all at the same time.</p><p>This is what makes my job so interesting and keeps me engaged. Technical problems alone like tuning an API to increase by 5% performance are nice to solve, but as a recently promoted staff engineer, I’m probably more excited to contribute to the more significant battles facing us today. Overall we are left with a leaner team and new leadership but still heading in the right direction.</p><p>I’m genuinely excited to be part of the engineering leadership at OUA who are creating our company’s engineering strategy and vision. By having this embraced in my product team, we are finding the alignment we were always looking for. This year, I look forward to telling more stories with some deep technical dives and sharing them with the community.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=811cdc384b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openunisau-engineering/the-engineering-journey-open-universities-811cdc384b8">The engineering journey @ Open Universities Australia</a> was originally published in <a href="https://medium.com/openunisau-engineering">openunisau-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>