<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/never-use-datagrams-v3n3pf8ak" -->

---
title: Never* use Datagrams | daily.dev
description: The post debates the use of TCP versus UDP for data transmission over the internet, emphasizing that while UDP is traditionally used for scenarios requiring...
canonical: https://daily.dev/posts/never-use-datagrams-v3n3pf8ak
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Never* use Datagrams | daily.dev
og:description: The post debates the use of TCP versus UDP for data transmission over the internet, emphasizing that while UDP is traditionally used for scenarios requiring...
og:url: https://daily.dev/posts/never-use-datagrams-v3n3pf8ak
og:image: https://api.daily.dev/og/posts/V3n3Pf8AK.png
og:image:alt: Never* use Datagrams
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Never* use Datagrams

**[Hacker News](https://daily.dev/sources/hn)** · 7 min read · 10 upvotes · 2 comments

## Summary

The post debates the use of TCP versus UDP for data transmission over the internet, emphasizing that while UDP is traditionally used for scenarios requiring timeliness like live video streams, its unreliability makes it problematic. It advises developers against building applications directly on UDP due to the complexity and challenges involved, suggesting the use of QUIC instead for better timeliness and reliability. Additionally, it highlights issues like bufferbloat and the importance of proper congestion control mechanisms.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://quic.video/blog/never-use-datagrams/>

## Community discussion

Top comments from developers on daily.dev.

**@creativewarlock** · 1 upvotes

> Basic knowledge. Good if you don't know the benefits of TCP over UDP.

**@jeffreyliss** · 0 upvotes

> Does the thumbnail mean the author is pontificating? If so, good subject for it -- especially for people like me whose recall for the basics is sometimes not what it should be.

---

Tags: [#networking](https://daily.dev/tags/networking)

[View this post on daily.dev](https://daily.dev/posts/never-use-datagrams-v3n3pf8ak)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Never* use Datagrams","url":"https://daily.dev/posts/never-use-datagrams-v3n3pf8ak","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/never-use-datagrams-v3n3pf8ak"},"datePublished":"2024-06-23T10:48:53.383Z","dateModified":"2024-08-23T14:07:48.942Z","description":"The post debates the use of TCP versus UDP for data transmission over the internet, emphasizing that while UDP is traditionally used for scenarios requiring...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/08ff2c38058c7ce6bfea786abddb3b94?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/08ff2c38058c7ce6bfea786abddb3b94?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/never-use-datagrams-v3n3pf8ak","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"networking","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Never* use Datagrams"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/never-use-datagrams-v3n3pf8ak","comment":[{"@type":"Comment","text":"Basic knowledge. Good if you don’t know the benefits of TCP over UDP.","datePublished":"2024-08-23T14:30:04.617Z","url":"https://daily.dev/posts/V3n3Pf8AK#c-68f1pCHRM","author":{"@type":"Person","name":"Marcel Fitzner","url":"https://daily.dev/creativewarlock","image":"https://avatars.githubusercontent.com/u/4894323?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Does the thumbnail mean the author is pontificating? If so, good subject for it – especially for people like me whose recall for the basics is sometimes not what it should be.","datePublished":"2024-09-13T14:31:34.178Z","url":"https://daily.dev/posts/V3n3Pf8AK#c-c6Hr9mstj","author":{"@type":"Person","name":"Jeffrey Liss","url":"https://daily.dev/jeffreyliss","image":"https://lh3.googleusercontent.com/a/ACg8ocJkfHmKYx1mEoBXZKcR83Uwq5ACQkYYRfsHwfnGfvQIqb0MY6-Vjg=s96-c"}}]}
```

