<?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 David Saltares on Medium]]></title>
        <description><![CDATA[Stories by David Saltares on Medium]]></description>
        <link>https://medium.com/@dsaltares?source=rss-ba2fba078df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*5Bk6gH1HNLlWoqVxP3ipRQ.jpeg</url>
            <title>Stories by David Saltares on Medium</title>
            <link>https://medium.com/@dsaltares?source=rss-ba2fba078df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:48:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dsaltares/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[Behind the scenes of Aula’s Learning Experience Platform: our stack]]></title>
            <link>https://medium.com/ublend-co/behind-the-scenes-of-aulas-learning-experience-platform-our-stack-b0cce1a3dfc2?source=rss-ba2fba078df------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0cce1a3dfc2</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[David Saltares]]></dc:creator>
            <pubDate>Tue, 09 Feb 2021 16:10:25 GMT</pubDate>
            <atom:updated>2021-02-09T16:14:29.594Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lj9MQOOdXGLseJt85K11Mg.png" /></figure><p><a href="https://aula.education/">Aula</a> is the Learning Experience Platform (LXP) for higher education. We make it easy for educators to create community-first learning experiences that truly engage students.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6Mi5wySZUM0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6Mi5wySZUM0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6Mi5wySZUM0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d50fbd670fe0a44a222e2f3e1ad32561/href">https://medium.com/media/d50fbd670fe0a44a222e2f3e1ad32561/href</a></iframe><h3>😅 TL;DR</h3><ul><li>Terraform</li><li>React, React Native and Redux</li><li>AWS Lambda/serverless running on Node.js, S3, SNS, SQS, etc.</li><li>MongoDB Atlas</li></ul><h3>⚙️ The stack</h3><p>Let’s dive right in! 🏊‍♂️</p><h3>⌨️ Javascript</h3><p>Our entire stack is written in Javascript. This includes our web applications, mobile client and all of our back-end services.</p><p>Using modern Javascript throughout our codebase feels great. It gives our small team of full-stack developers consistency, which, coupled with Javascript’s flexibility, empowers us to be productive and move at a very fast pace.</p><h3>🏛 Isolated, reproducible environments</h3><p>We work with higher education institutions, a regulated sector where data privacy and security are of the utmost importance. No Aula back-end service should be able to access data from multiple institutions. Additionally, institutions should scale according to their needs in a cost-effective manner.</p><p>That is why each partner institution we work with gets their own fully isolated environment. In practical terms, this translates into a separate sub-account and <a href="https://aws.amazon.com/vpc/?vpc-blogs.sort-by=item.additionalFields.createdDate&amp;vpc-blogs.sort-order=desc">Virtual Private Cloud (VPC)</a> on AWS. Traffic can go in and out of the VPC through a <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Instance.html">NAT instance</a> running on an <a href="https://aws.amazon.com/ec2/?ec2-whats-new.sort-by=item.additionalFields.postDateTime&amp;ec2-whats-new.sort-order=desc">EC2</a> machine via <a href="https://www.docker.com/">Docker</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*m_It4NGt1QZhaV4X" /></figure><p>Every time we sign a new partner institution we set up a VPC and all the other AWS resources we require. This is an involved and error- prone process and that is why we let machines do it!</p><p>We heavily rely on <a href="https://en.wikipedia.org/wiki/Infrastructure_as_code">infrastructure as code</a> and use <a href="https://www.terraform.io/">Terraform</a> to define and provision new environments. Terraform removes the human error factor and makes creating new environments a far easier process.</p><h3>🚛 Storage</h3><p>Each use case requires a particular type of storage. As previously mentioned, each store is separate per institution and lives within their corresponding VPC.</p><ul><li><a href="https://www.mongodb.com/2">MongoDB</a> via <a href="https://www.mongodb.com/cloud/atlas">Atlas</a> for our long-lived application data: posts, comments, messages, assignments, etc.</li><li><a href="https://www.elastic.co/elasticsearch/">ElasticSearch</a> running on EC2 to power our search feature</li><li><a href="https://aws.amazon.com/s3/">S3</a> to store images, videos and other files users can share on the platform</li><li><a href="https://redis.io/">Redis</a> for our <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API">WebSocket</a> server instances to communicate and deliver real-time updates to our front-ends</li></ul><h3>🏎️ Microservices</h3><p>At Aula, we have built our back-end around the <a href="https://microservices.io/">microservices</a> paradigm. We believe it to be the best fit for our use case because:</p><ul><li>We can collaborate more easily without conflict</li><li>Services can auto-scale independently in a much more cost-effective way</li><li>Issues affecting one service can be isolated, allowing the rest of the application to function as usual</li></ul><p>We minimise the drawbacks of microservices with:</p><ul><li>Shared utility libraries to reduce boilerplate</li><li>Tooling to manage deployment complexity</li></ul><p>Most of our back-end logic runs on <a href="https://aws.amazon.com/lambda/">AWS Lambda</a> and the <a href="https://www.serverless.com/">Serverless framework</a> with the Node.js runtime. This allows us to focus on the business logic rather than managing servers. <br>We find that Lambda functions scale phenomenally well. Migrating from a Docker/EC2 model to Lambda has truly transformed Aula Engineering, dramatically improving stability and developer experience.</p><p>Let’s go through the journey of two common workflows at Aula — <em>creating a post</em> and <em>sending a message</em> — and see what happens under the hood.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*iMJubeGlMVZOOciw" /></figure><ul><li>The client makes an HTTP request to an API endpoint</li><li><a href="https://aws.amazon.com/api-gateway/">API Gateway</a>, managed by AWS, invokes the corresponding Lambda function that implements the route handler</li><li>The Lambda function handles authentication, runs some business logic, saves content to the database and pushes an event to our <a href="https://aws.amazon.com/sns/">SNS</a> event bus. This allows other services to react to the event in a non-blocking, fault-tolerant way</li><li>An <a href="https://aws.amazon.com/sqs/">SQS</a> queue for live updates picks up the event and triggers a new Lambda function that forwards the event to our Websocket server</li><li>Our Websocket server runs on <a href="https://aws.amazon.com/blogs/aws/aws-fargate/">Fargate</a> and communicates across instances via Redis. The new post or message event reaches other relevant users via sockets! Fargate removes a lot of the complexity of scaling a cluster of containers</li></ul><p>The Lambda, SNS, SQS pattern described above is used for many other features like push notifications or search indexing. The use of <a href="https://en.wikipedia.org/wiki/Dead_letter_queue">dead letter queues (DLQs)</a> when a particular queue message fails to be processed provides us with great error recovery capabilities. Messages are not lost and processing can be retried.</p><h3>User analytics</h3><p>Aula is a data-driven company. We rely heavily on user analytics to make product decisions. Furthermore, educators using Aula depend on student engagement data to identify those who may be falling behind and need a bit of help.</p><p>It’s essential that our analytics pipeline is reliable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*vxbmq9knWMXf_enu" /></figure><p>Both our clients and back-end services may generate analytics events. These events are processed by a lambda function that uses <a href="https://docs.aws.amazon.com/firehose/latest/dev/what-is-this-service.html">Kinesis Firehose</a> to aggregate events into an S3 bucket. Analytics events and our MongoDB store are synchronised into our <a href="https://www.snowflake.com/data-warehousing-glossary/virtual-warehouse/">Snowflake</a> data warehouse, and are transformed for consumption by <a href="https://www.metabase.com/">Metabase</a>, our <a href="https://en.wikipedia.org/wiki/Business_intelligence">Business Intelligence</a> tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*aMG0_qeRiWZ9sjtB" /></figure><h3>⚛️ Web and mobile clients</h3><p>At Aula, we love <a href="https://reactjs.org/">React</a> for its one-way data flow, composability and huge community. We use React in all our client applications. On mobile, <a href="https://reactnative.dev/">React Native</a> gives us all the benefits of React plus access to native features when needed.</p><p>On top of being fantastic tools, their level of consistency keeps the mental burden on the team to a minimum, which allows us to be flexible and work across the product easily.</p><p>To avoid repetition when building features for both web and mobile, both platforms share the whole Redux store, actions, reducers and selectors. The re-use also results in fewer bugs and a more consistent experience across devices 🐛!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*rJlNPCOhXyzZDOci" /></figure><h3>♻️ Build, test and deploy workflow</h3><p>Managing a collection of microservices, multiple front-ends and many different environments can certainly become cumbersome without the appropriate tooling. We have automated all these processes with a combination of off-the-shelf products and our own Aula <a href="https://en.wikipedia.org/wiki/Command-line_interface">CLI</a>.</p><p>All our code lives in a <a href="https://en.wikipedia.org/wiki/Monorepo">monorepo</a> hosted on Github, which we also use for issue tracking. When a PR is open, a <a href="https://circleci.com/">Circle CI</a> job kicks off that lints and tests the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*lCNpqFh7kjsTssDy" /></figure><p>Once a PR is merged, another Circle CI job is spun, which:</p><ul><li>Builds the front-ends and services that have changed</li><li>Creates a new monorepo version</li><li>Deploys the version to our staging environment</li><li>Runs E2E tests written in <a href="https://www.cypress.io/">Cypress</a></li><li>Deploys the version to our internal Aula environment. We <a href="https://en.wikipedia.org/wiki/Eating_your_own_dog_food#:~:text=Eating%20your%20own%20dog%20food%20or%20dogfooding%20is%20the%20practice,a%20kind%20of%20testimonial%20advertising.">dog-food</a> our own product 🐶!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*Z5gIcgtbByv1mx-I" /></figure><p>We trigger deployments to production via Aula CLI, which in turn spins up jobs on Circle CI.</p><p>The Aula CLI also provides tooling around other common workflows such as test user creation and individual service deployments.</p><h3>🚨 Logging, monitoring and alerting</h3><p>Observability is paramount when maintaining a SaaS product. You should not wait until your users tell you something is not quite working before you act 😱!</p><p>All our back-end services output logs and metrics into <a href="https://aws.amazon.com/cloudwatch/">CloudWatch</a>. Alarms are then set based on our <a href="https://en.wikipedia.org/wiki/Service-level_agreement">SLAs</a>. For example, when the availability of a REST endpoint goes below 99.9% for 1 minute, an alarm is raised and routed to <a href="https://www.atlassian.com/software/opsgenie">Opsgenie</a>, our on-call management tool.</p><p>Alerts are periodically tuned to maximise how useful they are whilst keeping noise to a minimum.</p><p>Client-side errors are tracked via <a href="https://sentry.io/">Sentry</a>.</p><h3>🚀 Next</h3><p>We have a public <a href="https://portal.aula.education/tabs/8-in-development">product portal</a> where you can peek into our roadmap and see what we’re working on right now.</p><p>As a team, we continuously improve our processes and technologies. For example, we’re introducing Typescript as we build a <a href="https://portal.aula.education/c/59-aula-editor-v2-0">brand-new content editor</a> based on <a href="https://www.slatejs.org/examples/richtext">Slate</a>.</p><h3>👋 Join us</h3><p>Do you want to join a remote and diverse team, work with exciting technologies and build a community-first platform that helps educators make learning truly engaging? We’re looking for <a href="https://aulaeducation.recruitee.com/o/senior-software-developer-remote">Senior Software Developers</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0cce1a3dfc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ublend-co/behind-the-scenes-of-aulas-learning-experience-platform-our-stack-b0cce1a3dfc2">Behind the scenes of Aula’s Learning Experience Platform: our stack</a> was originally published in <a href="https://medium.com/ublend-co">Aula</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>