Loading and Using an ML model in Django

It is definitely recommended to load your ML models in apps.py. When the application runs here, the trained model is loaded only one time. Otherwise, the trained model is loaded whenever an endpoint is called, and the response time will therefore be slower. Let’s assume that your trained model is ready to predict stock prices … Read more Loading and Using an ML model in Django

What are .dacpac files

DACPAC is one single file that contains the database model, i.e. all files represent the database objects. It represents a binary structure of the SSDT-compatible database project.The name comes from an extension of these files. But, if you change the extension from *.dacpac to *.zip, you’ll be able to jump in and check what’s there. … Read more What are .dacpac files

Coding Patterns in C# and Python for Coding Interviews (M/H)

Note: this post is being updated progressively. 1. Sliding window Problem: Given a string s, find the length of the longest substring without repeating characters. C# Runtime: 84 ms, faster than 80.08% of C# online submissions for Longest Substring Without Repeating Characters. Time Complexity : O(n) Space Complexity: O(n) Python 3 Runtime: 64 ms, faster than 65.71% of Python3 online submissions for Longest Substring … Read more Coding Patterns in C# and Python for Coding Interviews (M/H)

Chapter 1 – Building a simple Real-Time stock market price tracker using Django Channels, Redis, Celery, and JavaScript

‘Channels’ uses Django and extends its power beyond HTTP – to enable handling WebSockets, chat protocols, IoT protocols, and others. It is built on a Python specification called ASGI (Asynchronous Server Gateway Interface). ‘Channels’ is built on the native ASGI support provided in Django since v3.0, providing an implementation for Django v2.2. Django still handles … Read more Chapter 1 – Building a simple Real-Time stock market price tracker using Django Channels, Redis, Celery, and JavaScript

Why Redis … in a few words

One of the most important stages in software design engineering is to understand the problem and establish a design scope. In many cases, when it comes to the back-of-the-envelope estimation, redundant requests towards the databases and/or the resources represent a tricky challenge that must be carefully taken into consideration if the product in question might … Read more Why Redis … in a few words

Setup a CI/CD pipeline using Github Actions, Docker

GitHub Actions is GitHub’s new build server, just like Gitlab’s gitlab pipeline. It allows you to automate your workflow directly from your GitHub repository, without having to configure and manage a third-party server like jenkins, Bamboo, CircleCI. For example, we can define an action that allows us to build our project and run a set … Read more Setup a CI/CD pipeline using Github Actions, Docker

Asynchronous Tasks in Django with Redis and Celery

This study shows you why the celery line is so relevant and how celery can be used in your Django app in conjunction with Redis. We build a small image management framework to display a particular application that summarizes the photos the user submits. This tutorial offers an overview of why the celery message queue … Read more Asynchronous Tasks in Django with Redis and Celery

Open chat
Powered by