Seeking Advice on Integrating Async/Await into an Existing Synchronous Python Codebase

Đã Đóng Đã đăng vào 2 tháng trước Thanh toán khi bàn giao
Đã Đóng Thanh toán khi bàn giao

Hello everyone! ? I'm currently working on a Python project where I'm facing a challenge with asynchronous programming. Our codebase is primarily synchronous, but we've recently started integrating async/await for certain I/O-bound operations (specifically with InfluxDB).

However, I've run into the "async contagion" issue where converting one function to async leads to a chain reaction requiring many other functions up the call chain to also become asynchronous. This is causing significant refactoring challenges.

I'm looking for insights or best practices on how to smoothly transition a large, synchronous codebase to incorporate async/await, particularly in the context of database operations.

Here are some specific points I'm curious about:

What strategies can be employed to manage the transition without having to refactor the entire codebase at once?

Are there any patterns or design principles that can help manage a mix of sync and async code?

Is there a pragmatic approach to use async in parts of the codebase that are heavily I/O-bound while keeping other parts synchronous?

Any pitfalls or common mistakes to avoid during this transition?

I appreciate any experiences, insights, or resources you can share on this topic. Thank you in advance! ?

Python Kiến trúc phần mềm

ID dự án: #37522477

Về dự án

25 đề xuất Dự án từ xa 1 tháng trước đang mở

25 freelancer chào giá trung bình$157 cho công việc này

Rekhathakur

Hello, Greetings of the Day!! Yes, I will surely help you and I am ready to work on this project. I already worked on a similar project and will perform the following tasks perfectly. * Can we have a quick chat Thêm

$250 CAD trong 7 ngày
(13 Nhận xét)
6.4
gm341473

Hello there! My name is Ghulam and I'm excited to hear about your project seeking advice on integrating async/await into an existing synchronous Python codebase. From what you've described, it sounds like you're facing Thêm

$140 CAD trong 2 ngày
(18 Nhận xét)
5.1
vorasiddh4it

I have read project requirements for a Python project where a challenge with asynchronous programming. Our codebase is primarily synchronous, but we've recently started integrating async/await for certain I/O-bound ope Thêm

$450 CAD trong 7 ngày
(15 Nhận xét)
5.1
donfhaden

Dear, I am excited to apply for the Python programming job you posted. As a Python developer with years of experience, I am confident that I have the skills and expertise required to deliver high-quality work. In my Thêm

$140 CAD trong 7 ngày
(18 Nhận xét)
4.1
paul612

I'm excited to hear about your project and challenge with async programming! As a professional with extensive experience in software architecture and Python, I believe I can provide the best solution for your project. Thêm

$200 CAD trong 7 ngày
(5 Nhận xét)
3.4
manpreetkaur991

Hello everyone! I'm Manpreet, a senior web and mobile developer with extensive experience in various technologies.I understand that you're facing a challenge with integrating async/await into an existing synchronous Py Thêm

$250 CAD trong 7 ngày
(3 Nhận xét)
3.8
Apurva510

Hello I have thoroughly reviewed your project description and am confident in my ability to assist you in completing it successfully. I believe it would be highly beneficial to delve deeper into the specifics of the j Thêm

$220 CAD trong 7 ngày
(2 Nhận xét)
2.7
Shikha510

Hello there! I understand your project requirements. I am confident that I can provide the best solution for your needs. I am a senior web and mobile app engineer with extensive experience in programming languages li Thêm

$250 CAD trong 8 ngày
(1 Nhận xét)
2.6
GdevDataSceince

Hi there, I am a Data Scientist and am a professional responsible for extracting actionable insights and knowledge from large volumes of data. I have over 12-plus years of experience with Python Library Pandas, Karas, Thêm

$100 CAD trong 2 ngày
(2 Nhận xét)
2.2
Wonab

Hello there! My name is Kevin and I'm an expert on the ground of Python development. I have good experience in multi-threading and concurrency. i can help you. thank you.

$140 CAD trong 7 ngày
(1 Nhận xét)
2.3
raionrochelle

Dear Jeremie G., I am C/C++/Python/Django/Flask expert with +6 years of experience in development in Python and C++ as well. Also, I'm familiar with Software Architecture and Python I have converted many scripts and Thêm

$30 CAD trong 5 ngày
(0 Nhận xét)
0.0
Dimasan569

Hi Jeremie G., I’ve checked your requirements and really interested in this job. I can complete your project on time and your will experience great satisfaction with me. I have rich experienced in Software Architectur Thêm

$150 CAD trong 3 ngày
(0 Nhận xét)
0.0
VadymLes

Hello, Jeremie G. I have read your job description carefully and understood what you want. This opportunity caught my eyes because I have good experience and deep knowledge in this field including Python and Software Thêm

$100 CAD trong 3 ngày
(0 Nhận xét)
0.0
angelgrod

*I AM A SENIOR PYTHON DEVELOPER WHO YOU ARE SEEKING FOR* Hello, I've checked your project description right now. I really excite for your project purpose. Because I feel very confidence in your project and I can finish Thêm

$100 CAD trong 3 ngày
(1 Nhận xét)
0.1
christinezekrian

Hi, I can help you smoothly transition to async/await in your Python codebase. Here's my approach: 1. Gradual Shift:We won't refactor everything at once; we'll focus on I/O-bound sections first. 2. Design Patterns: Thêm

$100 CAD trong 14 ngày
(0 Nhận xét)
0.0
saabithjaufer

Hello Client. How are you? I let you know that I am a good fit person for your project. I am a highly skilled web developer with extensive experience in both front-end and back-end development for 7 years. My strength Thêm

$120 CAD trong 5 ngày
(0 Nhận xét)
0.0
Wxyzhan1993

Hello I am a seasoned software developer with rich experiences and deep knowledge in Python dev and Software architecture. I really promise the high-quality of result and excellent add service. I'd like to discuss mor Thêm

$200 CAD trong 7 ngày
(1 Nhận xét)
0.0