ASAB

Asynchronous Server App Boilerplate Video Tutorial

Previous article

If you ever wondered about how to enter the fast asynchronous world, where web servers and other responsive applications utilize hardware components to their maximum and sleep when no work is necessary, you are in the right place.

Asynchronous Server App Boilerplate (ASAB) was built exactly for the purpose of letting newcomers quickly enter the asynchronous programming with just a few lines of code. ASAB can then be used for building complex applications or foundations for other frameworks and base components.

Introduction

Presentation of the ASAB architecture together with basics of asynchronous programming in Python with asyncio library.

Hello world

How to build a few line long "Hello world" application.

Web server example

Web server application made easy with ASAB using aiohttp.

Publish-subscribe (PubSub) example

Publish-subscribe mechanism of events in the ASAB application.

Logging & Configuration

How to use hierarchy configuration and simple logging.

Modules & Services

ASAB is based on modules, services and their handlers to ensure loose coupling and independent microservices.

Other examples

ASAB provides many examples, which are part of the source code on GitHub: https://github.com/TeskaLabs/asab/

About the Author

Premysl Cerny

Software Developer at TeskaLabs




You Might Be Interested in Reading These Articles

Building High-Performance Application Servers - What You Need to Know

Using scalable and reliable software is vital for the success of any large-scale IT project. As increasing numbers of transactions are made, application infrastructure needs to stand strong and support that growth, and not be another source of problems.

Continue reading ...

development tech

Published on January 17, 2017

Building the Correlator #1: Analyzing long series of cybersecurity data with window correlation

In a cybersecurity system, there are usually tens of thousands of messages transmitted every second, each containing information about user behavior, device status, connection attempts, and other activities performed in a network infrastructure. These messages are called logs, and they are produced not only by the servers themselves, but by all kinds of applications running on those servers, as well as network devices such as firewalls.

Continue reading ...

security development

Published on May 15, 2024

Key Areas and Best Practices to Focus for Mobile API Security

With APIs (Application Programming Interfaces) becoming a crucial factor in any web or mobile application, security feels more like a journey than a destination. Of all the constituents that encompass an application, API gateway offers easy access points for a hacker to break in and steal your data. A single error in API can cause immense problems for any organization using your API.

Continue reading ...

security mobile development

Published on November 22, 2016