<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl" -->

---
title: I Found a Faster Way to Build Next.js APIs | daily.dev
description: Discover a method for deploying Next.js APIs in a highly performant and cost-effective manner by utilizing Cloudflare Workers. This approach benchmarks...
canonical: https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Found a Faster Way to Build Next.js APIs | daily.dev
og:description: Discover a method for deploying Next.js APIs in a highly performant and cost-effective manner by utilizing Cloudflare Workers. This approach benchmarks...
og:url: https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl
og:image: https://api.daily.dev/og/posts/ojDEpBbVL.png
og:image:alt: I Found a Faster Way to Build Next.js APIs
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.

# I Found a Faster Way to Build Next.js APIs

**[Josh tried coding](https://daily.dev/sources/joshtriedcoding)** · 15 min read · 130 upvotes · 0 comments

## Summary

Discover a method for deploying Next.js APIs in a highly performant and cost-effective manner by utilizing Cloudflare Workers. This approach benchmarks different setups to highlight the significance of API deployment region, minimal dependencies per request, and lightweight runtimes. A comparison between a simple Cloudflare Worker, a custom architecture, and Vercel Edge Functions reveals considerable performance improvements.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=qw_jmlC67xE>

---

Tags: [#performance](https://daily.dev/tags/performance), [#nextjs](https://daily.dev/tags/nextjs), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl)

```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":"I Found a Faster Way to Build Next.js APIs","url":"https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl"},"datePublished":"2024-11-14T16:43:46.858Z","dateModified":"2024-12-08T20:27:05.982Z","description":"Discover a method for deploying Next.js APIs in a highly performant and cost-effective manner by utilizing Cloudflare Workers. This approach benchmarks...","image":"https://i.ytimg.com/vi/qw_jmlC67xE/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/qw_jmlC67xE/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Josh tried coding","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":"Josh tried coding","logo":"https://media.daily.dev/image/upload/s--itFTXwEq--/f_auto/v1723789066/logos/joshtriedcoding","url":"https://daily.dev/sources/joshtriedcoding"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-found-a-faster-way-to-build-next-js-apis-ojdepbbvl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":130},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,nextjs,cloudflare","timeRequired":"PT15M","video":{"@type":"VideoObject","name":"I Found a Faster Way to Build Next.js APIs","description":"Discover a method for deploying Next.js APIs in a highly performant and cost-effective manner by utilizing Cloudflare Workers. This approach benchmarks...","thumbnailUrl":"https://i.ytimg.com/vi/qw_jmlC67xE/sddefault.jpg","uploadDate":"2024-11-14T16:43:46.858Z","duration":"PT15M","url":"https://api.daily.dev/r/ojDEpBbVL","embedUrl":"https://www.youtube.com/embed/qw_jmlC67xE"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Josh tried coding","item":"https://daily.dev/sources/joshtriedcoding"},{"@type":"ListItem","position":3,"name":"I Found a Faster Way to Build Next.js APIs"}]}
```

