Contribute Media
A thank you to everyone who makes this possible: Read More

Building Customized Async Web Protocol from AsyncIO|姜韋辰 Daniel|PyCon APAC 2022

Description

PyCon APAC 2022|一般演講 Talks|國泰金控 Cathay Financial Holdings / 美光科技 Micron 冠名贊助

✏️ 共筆 Note:https://hackmd.io/@pycontw/B17AUTXks 🖐🏻 Slido:https://app.sli.do/event/aH6RxX7bYGg8WR3GvM3Q3X 🪧 投影片 Slides:https://docs.google.com/presentation/d/1OEAJF6cP_m62QMiprRzWEg6jOclR-kHdLl8g9hk9iZw/edit?usp=sharing 💬 語言 Language:中文演講/英文投影片 Chinese talk w. English slides 🎯 層級 Level:進階 Experienced 🔎 分類 Category:Python 核心 Python Core

💡 摘要 Abstract 💡 Despite their powerful features and flexibility, the low-level APIs for library and framework developers provided in Asyncio are underutilized. One reason might be the high entry barrier – prerequisites like understanding protocols knowledge and asynchronous design patterns. I am sharing my humble experience with Asyncio here. I show you how to implement a network protocol, specifically Websocket, with Protocol and Transport, two of the staple low-level APIs in the package. You will learn how to establish a consensual connection and communicate between the server and the client. While the main focus is on low-level APIs (e.g., we will use Transport to send messages to another endpoint) , we will be using some high-level APIs (e.g., StreamReader, Queue) for auxiliary purposes like message handling. It is hoped that the techniques and familiarity gained with asyncio serve as the basis for your customized network protocol and libraries, even for commercial purposes, in the future.

🚀 講者介紹 About Speaker - 姜韋辰 Daniel 🚀 我是一名後端工程師,熟悉常用的 Python web 框架,喜歡挑戰各種業務場景的服務。專注於系統開發以及服務優化,因應業務需求,偶而也會下海寫寫前端,最近比較著迷 infra 相關建置及維護。

#python #pycontw #pyconapac2022 #asyncio

Follow “PyCon Taiwan” ⭐️ Official Website: https://tw.pycon.org ⭐️ Facebook: https://www.facebook.com/pycontw ⭐️ Instagram: https://www.instagram.com/pycontw ⭐️ Twitter: https://twitter.com/PyConTW ⭐️ LinkedIn: https://www.linkedin.com/company/pycontw ⭐️ Blogger: https://pycontw.blogspot.com

Details

Improve this page