DORSETRIGS
Home

rust-tokio (25 post)


posts by category not found!

How to utilize kafka batching for producer in Rust

Streamlining Your Rust Kafka Producers The Power of Batching Kafka is a powerful tool for building real time data pipelines But when you re sending large volume

2 min read 05-10-2024 43
How to utilize kafka batching for producer in Rust
How to utilize kafka batching for producer in Rust

Wrap a hyper::Body in a BufReader in Rust

Unlocking Efficiency How to Wrap a hyper Body in a Buf Reader in Rust Working with network requests in Rust often involves handling large amounts of data The hy

2 min read 05-10-2024 42
Wrap a hyper::Body in a BufReader in Rust
Wrap a hyper::Body in a BufReader in Rust

Rust async loop function blocks another futures execution

Unlocking Rust Asynchronous Code Why async Loops Can Block Execution Asynchronous programming in Rust can be a powerful tool for building efficient and responsi

3 min read 05-10-2024 40
Rust async loop function blocks another futures execution
Rust async loop function blocks another futures execution

How do I create a terminal session from the WSS url that I got from `aws-sdk-ssm` client in Rust?

Connecting to AWS Systems Manager Session Manager Through a WSS URL in Rust This article will guide you through establishing a secure terminal session to an AWS

3 min read 04-10-2024 46
How do I create a terminal session from the WSS url that I got from `aws-sdk-ssm` client in Rust?
How do I create a terminal session from the WSS url that I got from `aws-sdk-ssm` client in Rust?

Minimize idle CPU usage of async thread in Tokio / Rust

Minimizing Idle CPU Usage of Async Threads in Tokio Rust In modern software development especially in systems programming managing resources efficiently is cruc

3 min read 29-09-2024 46
Minimize idle CPU usage of async thread in Tokio / Rust
Minimize idle CPU usage of async thread in Tokio / Rust

How to run multiple futures concurrently?

How to Run Multiple Futures Concurrently in Python Running tasks concurrently is a common requirement in modern software development especially when dealing wit

2 min read 29-09-2024 58
How to run multiple futures concurrently?
How to run multiple futures concurrently?

Dockerized rust program only connects to other containers via "host" networking

Understanding Docker Networking for Rust Applications When deploying Rust applications within Docker containers developers sometimes encounter networking issues

2 min read 22-09-2024 54
Dockerized rust program only connects to other containers via "host" networking
Dockerized rust program only connects to other containers via "host" networking

How to manually poll Runtime to drive futures without blocking current thread?

How to Manually Poll Runtime to Drive Futures Without Blocking the Current Thread In the world of asynchronous programming particularly when using Rust develope

3 min read 22-09-2024 55
How to manually poll Runtime to drive futures without blocking current thread?
How to manually poll Runtime to drive futures without blocking current thread?

Rust tracing not generating span IDs or associating with parents

Understanding Rust Tracing Debugging Span IDs and Parent Associations In the realm of Rust programming effective tracing is essential for debugging and performa

3 min read 21-09-2024 43
Rust tracing not generating span IDs or associating with parents
Rust tracing not generating span IDs or associating with parents

Error: This functionality requires a Tokio context

Understanding the This Functionality Requires a Tokio Context Error in Rust In Rust programming especially when dealing with asynchronous code using the Tokio r

3 min read 21-09-2024 42
Error: This functionality requires a Tokio context
Error: This functionality requires a Tokio context

Migrating process to tokio

A Comprehensive Guide to Migrating to Tokio A Step by Step Process As software developers seek to build faster and more efficient applications the need for asyn

3 min read 20-09-2024 48
Migrating process to tokio
Migrating process to tokio

tokio-runtime-worker stack overflow in hashing function

Understanding Stack Overflow in Tokio Runtime Worker Hashing Functions When working with the Tokio runtime developers often encounter various performance and er

3 min read 15-09-2024 53
tokio-runtime-worker stack overflow in hashing function
tokio-runtime-worker stack overflow in hashing function

Sending buffer, and reference to buffer, down channel

Understanding Sending Buffers and References in Down Channels In the realm of computer networking the concepts of sending buffers and references to buffers are

2 min read 14-09-2024 55
Sending buffer, and reference to buffer, down channel
Sending buffer, and reference to buffer, down channel

Why does Tokio single threaded flavor not provide any concurrency?

Understanding Tokios Single Threaded Flavor Why It Lacks Concurrency Introduction In the realm of Rust programming Tokio stands out as a powerful asynchronous r

2 min read 14-09-2024 48
Why does Tokio single threaded flavor not provide any concurrency?
Why does Tokio single threaded flavor not provide any concurrency?

Returning and using an reqwest::Response from an async method

Handling reqwest Response in Async Methods A Guide for Rust Developers Working with asynchronous HTTP requests in Rust using reqwest often involves handling the

2 min read 13-09-2024 61
Returning and using an reqwest::Response from an async method
Returning and using an reqwest::Response from an async method

Connecting to tokio-native-tls echo.rs from react

Connecting React to a Tokio Native TLS Echo Server In recent years the demand for secure communication between front end and back end applications has escalated

3 min read 05-09-2024 47
Connecting to tokio-native-tls echo.rs from react
Connecting to tokio-native-tls echo.rs from react

What is the benefit of using tokio instead of OS threads in Rust

The Benefits of Using Tokio Over OS Threads in Rust In recent years asynchronous programming has gained significant traction in Rust particularly through librar

3 min read 03-09-2024 52
What is the benefit of using tokio instead of OS threads in Rust
What is the benefit of using tokio instead of OS threads in Rust

Rust project is suddenly failing on Windows - slice::from_raw_parts requires the pointer to be aligned and non-null

Rust on Windows Demystifying the slice from raw parts Alignment Error You re working on a Rust project everythings running smoothly on Linux then you switch to

3 min read 02-09-2024 52
Rust project is suddenly failing on Windows - slice::from_raw_parts requires the pointer to be aligned and non-null
Rust project is suddenly failing on Windows - slice::from_raw_parts requires the pointer to be aligned and non-null

Dioxus - spawn not getting executed

Dioxus Why Your spawn Function Isnt Executing This article delves into a common issue faced by Dioxus developers the spawn function not executing as expected We

2 min read 02-09-2024 47
Dioxus - spawn not getting executed
Dioxus - spawn not getting executed

What are the differences between StreamExt from the tokio_stream and futures crates?

Understanding the Similarities and Differences between tokio stream Stream Ext and futures Stream Ext When working with asynchronous streams in Rust you ll like

2 min read 02-09-2024 46
What are the differences between StreamExt from the tokio_stream and futures crates?
What are the differences between StreamExt from the tokio_stream and futures crates?

Issue with OpenAI's transcription API

Troubleshooting Open AI Transcription API Why Your m4a File Isnt Transcribed This article explores a common issue encountered when using Open AIs transcription

2 min read 01-09-2024 56
Issue with OpenAI's transcription API
Issue with OpenAI's transcription API

Why does tokio create extra threads even with the current_thread flavor?

Understanding Tokio Threads Why Current Thread Still Creates Extra Threads Tokio the popular asynchronous runtime for Rust offers different execution flavors Th

2 min read 01-09-2024 45
Why does tokio create extra threads even with the current_thread flavor?
Why does tokio create extra threads even with the current_thread flavor?

Automating database index creations/deletion?

Automating Database Index Management A Practical Guide Optimizing database performance is crucial for any application and database indexes play a vital role in

3 min read 30-08-2024 48
Automating database index creations/deletion?
Automating database index creations/deletion?

`writeln!(std::io::stdout().lock(), "")` cannot be captured by cargo test

Why writeln std io stdout lock Cant Be Captured by cargo test When writing multi threaded code in Rust its common to use the std io stdout lock method to ensure

2 min read 29-08-2024 52
`writeln!(std::io::stdout().lock(), "")` cannot be captured by cargo test
`writeln!(std::io::stdout().lock(), "")` cannot be captured by cargo test

Reading a pdf in rust

Reading a PDF in Rust with lopdf This article provides a comprehensive guide to reading PDF documents in Rust using the lopdf crate addressing common challenges

2 min read 28-08-2024 57
Reading a pdf in rust
Reading a pdf in rust