Reading-Notes

View the Project on GitHub

Serverless Functions

overview

Serverless: a server where you are not responsible for managing the server, you only have to provide the code/logic as a software developer.

What is serverless?

Serverless pros and cons:

Pros:

note: DevOps: is a software development process that speeds the delivery of higher quality software by automating and integrating the efforts of development and IT operations teams.

Cons:

-Cold starts: Because serverless architectures forgo long-running processes in favor of scaling up and down to zero, they also sometimes need to start up from zero to serve a new request. For certain applications, this startup latency isn’t noticeable or detrimental to users. But for others - for example, financial trading application - the delay is unacceptable.

More in serverless


Severless Functions

Deploying Serverless Functions

To deploy Serverless Functions without any additional configuration, you can put files with extensions matching supported languages and exported functions in the /api directory at your project’s root.

Sometimes, you need to place extra code files, such as utils.js, inside the /api folder. To avoid turning them into API endpoints, prefix such files with an underscore, _utils.js. Files with the underscore prefix are not turned into Serverless Functions. Then, push to your connected Git repository using a Vercel for Git to receive a deployment automatically. You can deploy Serverless Functions to dozens of regions across the world.

More


Effective Python Environment

Shell Types:

Terminal Emulators:

Whereas a shell provides the prompt and interpreter you use to interface with text-based CLI tools, a terminal emulator (often shortened to terminal) is the graphical application you run to access the shell.

Virtual Environments

When you install a package in a virtual environment, you do it in isolation from other Python environments you may have. Each virtual environment has its own copy of the python executable.

Creating virtual environments

create a virtual environmet

More