SShortSingh.
Back to feed

TCP vs UDP: How Transport Protocols Determine Speed and Reliability

0
·1 views

TCP and UDP are two core protocols operating at the Transport Layer of the OSI Model, each designed for different networking needs. TCP prioritizes reliability through a three-way handshake, packet acknowledgment, automatic retransmission, and flow control, making it ideal for file transfers, emails, and web browsing. UDP skips these checks entirely, offering connectionless, low-latency transmission suited for real-time applications like video calls and live streaming. The trade-off is clear: TCP guarantees complete data delivery but introduces latency, while UDP is faster but accepts the risk of occasional packet loss. This distinction explains why a downloaded file arrives intact every time, while a video call may occasionally glitch or drop frames.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer Closes July 2026 With 24 WordPress Pull Requests Across 9 Repos

A developer contributed 24 pull requests across 9 WordPress repositories during July 2026, with WooCommerce accounting for the largest share at 10 merged PRs. A key fix addressed a log cleanup bug where WooCommerce's daily cron job deleted only 20 expired log files per run due to a missing pagination parameter, leaving excess files stranded indefinitely. Another fix corrected stale order counts in the admin panel caused by a cache shortcut that ignored custom query filters added by plugins. The most complex contribution replaced six separate REST API calls per page load with a single combined endpoint, reducing unnecessary network overhead for the WooCommerce Activity Panel and homescreen widget. The developer shared full code diffs for each change to help others understand the context and impact of each fix.

0
ProgrammingDEV Community ·

Build vs Buy: A Framework for Founders Choosing React Native App Templates

A developer-facing guide argues that most founders waste time debating whether to build a React Native app from scratch or buy a template, when the real question is where their product's differentiation lies. The framework suggests that if an app's uniqueness comes from its AI pipeline, marketplace logic, or workflow, founders should buy a template and redirect engineering effort toward those differentiators. Roughly 90% of consumer apps fall into this category, yet many founders mistakenly assume their infrastructure needs are unique enough to justify building from scratch. Full-stack templates, unlike basic UI kits, ship complete vertical stacks including database schemas, authentication, edge functions, and push notifications, saving an estimated 60-plus hours of setup work. The guide also addresses common concerns around originality and flexibility, noting that templates ship full source code and can be rebranded in an afternoon using tools like NativeWind.

0
ProgrammingDEV Community ·

How to Auto-Renew Tailscale HTTPS Certificates on PiKVM Using systemd

PiKVM users running Tailscale for remote access must manually handle HTTPS certificate renewals, as certificates obtained via 'tailscale cert' are not automatically renewed. A community-developed solution uses a systemd timer that runs daily to check whether the current certificate matches the device's Tailscale FQDN and has at least 30 days of validity remaining. If renewal is needed, the script temporarily switches PiKVM's read-only filesystem to read-write, fetches a fresh certificate using the '--min-validity=720h' flag, and replaces the nginx SSL files before restoring the filesystem to read-only. The approach aligns with official PiKVM documentation, which recommends placing Tailscale certificates in '/etc/kvmd/nginx/ssl/' and restarting the kvmd-nginx service after updates. Since Let's Encrypt certificates are valid for 90 days, triggering renewal at the 30-day mark provides a comfortable buffer against expiration.

0
ProgrammingDEV Community ·

Three key-free public APIs a developer uses daily in CI pipelines

A developer has shared a Node.js workflow that fetches trending content daily from three public APIs — Hacker News, DEV.to, and Reddit — without requiring any API keys or authentication. The script runs via GitHub Actions and feeds a content drafting pipeline, with keyless access reducing the risk of credential expiry or rotation failures in CI environments. The Hacker News Firebase API returns top story data with no rate limit documented, though parallel fetching and small delays help avoid occasional throttling. DEV.to's read-only articles endpoint allows unauthenticated access with a rate limit of 10 requests per second, while Reddit's lesser-known .json URL suffix enables listing data retrieval without OAuth, provided a valid User-Agent header is included. Each API has practical limitations around latency, uptime, or data freshness, but all three have proven reliable for once-daily automated runs over several months.