django-planet

Feed: Instawork Engineering

Latest stories tagged with Django in Instawork Engineering on Medium

Using Appsmith to build Pelican — A Pro 360° Dashboard

Sept. 18, 2023 » Instawork Engineering » [Archived Version]

Using Appsmith to build Pelican — A Pro 360° DashboardAs the saying goes, “with great power comes great responsibility”, when you build a powerful platform like Instawork that caters to the needs of millions of professionals and businesses, it comes with the responsibility to ensure their needs and issues are addressed promptly and effectively, ultimately leading to enhanced user experience and successful resolution of their enquiries.So, who takes on this responsibility?Instawork’s ever growin…

Read More

Internationalization and Localization with Django (-model-translations) @Instawork

July 12, 2023 » Instawork Engineering » [Archived Version]

At Instawork, we want to create economic opportunity for all workers, and not just those who speak English. To do so, language must not be a barrier; localization of the app to support the 14% Spanish speaking population in the United states is a key first step. However, Spanish is but one of many languages spoken across the globe; to truly achieve our objective, we need not one-off efforts, but instead a scalable process to localize the app for many regions and languages.Here, we’ll go over ou…

Read More

The Journey from Hackathon to Production: Lessons Learned

May 16, 2023 » Instawork Engineering » [Archived Version]

The Journey from Hack-a-thon to Production: Lessons LearnedAt Instawork, hackathons are a time-honored tradition. Every few quarters, our teams eagerly anticipate the chance to collaborate on experimental ideas, explore new technologies, and have a blast doing it. Over the years, many hackathon projects have become integral parts of our product, such as NFC-based clock in/out features, crowdsourcing staffing information, and our innovative Falcon tool.This was my first hackathon at Instawork an…

Read More

On joining as an existing Engineering Team

Sept. 24, 2022 » Instawork Engineering » [Archived Version]

It was March 2021. We were struggling to keep our start-up afloat. Stateoftheart.ai was a platform to facilitate AI research that we have been working on for over 2 years. The core team was Andres and Toño, PhDs from MIT leading us in terms of product and AI, me (Hugo) leading the overall technology, Lalo mostly guiding UI/UX and frontend efforts, and Jorge our more versatile engineer helping us in all fronts.As a team passionate for AI and Tech, our main motivation was to create something usef…

Read More

Celery ETA Tasks Demystified

May 23, 2022 » Instawork Engineering » [Archived Version]

At Instawork, we use Celery to queue and process background tasks from our Django code. Typically, we want the tasks to be processed as quickly as possible. But sometimes we want a task to be processed at a specific point in the future. For example, we may want to send a reminder notification to our users 1 hour before the start of their shift. Celery offers a convenient way to do this by providing an eta or countdown value when queueing the task from Django. This seems like a perfect solution …

Read More

Refactoring a Python Codebase with LibCST

Feb. 19, 2022 » Instawork Engineering » [Archived Version]

How can an engineering team maintain consistent conventions in a growing codebase? When working on new code, engineers add new patterns to improve productivity. But usually there’s no time to refactor older code to use the new pattern. Soon, there are multiple approaches to the same problem. This actually harms productivity as engineers debate the merits of the different patterns, spend time reimplementing their features, etc.https://xkcd.com/927/So what’s the solution? Use a codemod. A codemod…

Read More

A tale of performance — ECS, boto3 & IAM

Oct. 20, 2021 » Instawork Engineering » [Archived Version]

A tale of performance — ECS, Boto3 & IAMWhile going through NewRelic and looking at some of the worst offenders in terms of performance, we discovered some calls to S3 that were taking over 5000ms❗️This was alarming as our SLA for API/View response times was 250ms, and these network calls are destroying our KPIs. Through a series of experiments and iterations, we managed to bring the S3 access times down to 7ms, and learned some fascinating things about configuring Boto3 sessions and assign…

Read More

Common Pitfalls Using Django Signals

Aug. 20, 2021 » Instawork Engineering » [Archived Version]

There can be some strong opinions on the built-in signals available in Django and whether or not they should be used, but we’ll skip that here and instead focus on some basics of how best to use them and avoid some common pitfalls.For the uninitiated, signals are synchronously (this will be important later) firing events that trigger handlers. There are a few common built in ones, we’ll be discussing post_save and pre_save signals that are triggered whenever a Django model is saved.Infinite Loo…

Read More

Real-time Web Apps with Zero Lines of JS

Oct. 7, 2019 » Instawork Engineering » [Archived Version]

Using Django, Intercooler, and MercurePhoto by Marc-Olivier Jodoin on UnsplashIn a previous post, I described how Instawork doubled our web development productivity by abandoning React and embracing server-rendered pages enhanced with Intercooler.js. A standard React/Redux setup requires a lot of duplicated work; logic has to be written once on the server (as the source of truth), and a second time on the client (for local state management). By doing all UI rendering in our Django codebase, we …

Read More

Improving UI performance with Django’s Prefetch

May 28, 2019 » Instawork Engineering » [Archived Version]

Improving UI performance with Django’s Prefetch ObjectAs an engineer at Instawork, it’s my responsibility to make sure our web UI loads quickly to provide a great user experience. It can be hard to keep a page fast as we add features and display more information. I recently worked on such a page, which gave me an opportunity to learn about Django’s tools for optimizing database query performance.A core feature of Instawork is connecting our business partners with qualified hospitality professio…

Read More