March 1, 2023
3 min read
Code elimination & tree shaking – As mentioned above, your bundler does some work dropping unused code. Unfortunately, this doesn’t always fully do the job; you can read about how you can perform tree shaking practices in your JS app here.
Library alternatives – NanoID vs UUID, datefns vs moment. Large library packages increase your build size by a big amount. Luckily with a rich ecosystem, most of the time, you can find a smaller package that does a better job.
Code Splitting/Lazy Loading – Code splitting gives you the ability to create a bundle that will be separate from your main one. Lazy loading then allows you to load that newly created when your application needs it.
devDependencies – Your main dependencies are required to run your application in production. However, as frequently forgotten about packages like Typescript definitions or Linters can sometimes be large. These packages are meant for development and belong as dev dependencies.
Here is a StackOverflow post that adds on; you can also read about adding in performant practices relating to typescript.
Appropriately referred to as “the database that just won’t die” and created by three former google engineers. CockroachDB was designed to be a database that allowed you to write data and immediately made it available a thousand miles away.
A distributed SQL database, Postgres compatible it supports hosting on AWS and Google Cloud.
Used in industries like banking, gaming and live streaming.
Overall this database has seen wide adoption in enterprise applications during Covid, given how it handles data partitions, speed and isn’t priced high. Every now and then, a database that sells itself on being the future of storage is introduced; CockroachDB seems to be one of the few that can back these claims.
<3/> Inside the console
You might be aware of the large amount of time that could go to setting up build and deploy pipelines. AWS CodeStar is a managed service that tries to solve this issue, giving you a collection of existing AWS services that make it easier to develop and deploy your applications.
AWS CodeCommit acts as your git repository.
CodeBuild is responsible for continuous integration, testing and building your application before deployment.
CodeDeploy will automate your deployments.
Finally, CodePipeline is the glue that sticks everything together, allowing you to visualise each step in the build process.
Frontend tech is getting a lot more exciting to explore with every passing week. Although beta was only released a month ago, it’s still not too late to introduce Astro, the static page builder. 100% HTML, Bring your own framework (React, Vue, Web components, etc.) and full support for tools like typescript and CSS modules.
Trusted by 400+ companies, SovTech helps businesses scale by providing subscription-based access to world-class engineering teams and software development professionals. We are the leading global software development company from the fastest-growing continent. Built with ❤️ in 🇿🇦🇬🇧🇺🇸🇪🇺🇰🇪🇬🇭🇿🇼🇱🇸🇺🇬🇳🇬