The shift toward stateful serverless architecture For years, the serverless paradigm relied on a stateless model: a request arrives, a function executes, and the environment vanishes. While efficient for simple APIs, this model breaks down when building AI agents that require persistent memory and real-time interaction. Sunil Pai and Matt Carey argue that the industry has struggled to manage state by bolting on external databases and complex synchronization logic. Durable Objects solve this by providing a compute unit that lives at a specific ID, allowing every future request or WebSocket connection to land in the same execution context. This architecture enables 15ms latency in major hubs like London, allowing for real-time collaborative experiences where every user stays in perfect sync. For developers, this means the heavy lifting of distributed systems engineering is moved into the platform layer rather than the application code. Reclaiming 30 years of avoided code execution One of the most provocative claims from the Cloudflare team involves the rehabilitation of the `eval` function. Historically, executing dynamic code was considered a cardinal sin of security. However, the rise of Large Language Models (LLMs) creates a massive demand for running generated code on the fly. Dynamic Workers represent what the team calls **Eval++**. Unlike traditional VMs or containers that try to add security layers from the outside, these isolates start with zero capabilities. They have no access to the file system, no network access, and no environment variables. Security is additive: developers explicitly grant the sandbox access to specific APIs or domains. This allows an enterprise to safely execute code generated by an LLM or a user without the overhead of full virtualization. Collapsing the complexity of API integration The integration of the Model Context Protocol (MCP) into this ecosystem simplifies how agents interact with external services. Traditionally, exposing thousands of API endpoints to an AI requires massive token overhead, often confusing the model or exceeding context limits. Matt Carey reveals a method to collapse Cloudflare's 2,600 API endpoints into a tool that requires only 1,000 tokens. This efficiency stems from the stateful nature of the platform. Because Durable Objects maintain persistent connections, they are ideal hosts for MCP servers, which require stateful links between clients and servers. This removes the primary barrier to deploying MCP in production environments where stateless functions typically fail to maintain the necessary session continuity. Moving from JSON schemas to native React rendering The team also challenges the current trend of generative UI, where models produce JSON that a frontend then interprets. They suggest that this middle step is a vestige of platforms that cannot safely execute untrusted code. With secure isolates, agents can skip the JSON and generate React or HTML directly. This shift allows for resumable streaming and multi-tab synchronization out of the box. If a user refreshes their browser during a long-form LLM response, the Durable Object simply reconnects the stream where it left off. By making AI a "multiplayer game" where multiple users can interact with the same agent session in real-time, Cloudflare is positioning its workers as the fundamental nexus for the next generation of software agents.
Vercel
Companies
Sep 2024 • 1 videos
High activity month for Vercel. Laravel among the most active voices, with 1 videos across 1 sources.
Dec 2024 • 1 videos
High activity month for Vercel. Laravel among the most active voices, with 1 videos across 1 sources.
Feb 2025 • 1 videos
High activity month for Vercel. Laravel among the most active voices, with 1 videos across 1 sources.
May 2025 • 1 videos
High activity month for Vercel. Laravel among the most active voices, with 1 videos across 1 sources.
Jul 2025 • 2 videos
High activity month for Vercel. AI Engineer and The Riding Unicorns Podcast among the most active voices, with 2 videos across 2 sources.
Jan 2026 • 1 videos
High activity month for Vercel. AI Engineer among the most active voices, with 1 videos across 1 sources.
Feb 2026 • 1 videos
High activity month for Vercel. Awesome among the most active voices, with 1 videos across 1 sources.
Mar 2026 • 1 videos
High activity month for Vercel. Laravel Daily among the most active voices, with 1 videos across 1 sources.
Apr 2026 • 1 videos
High activity month for Vercel. AI Engineer among the most active voices, with 1 videos across 1 sources.
May 2026 • 1 videos
High activity month for Vercel. AI Engineer among the most active voices, with 1 videos across 1 sources.
Jun 2026 • 2 videos
High activity month for Vercel. AI Engineer among the most active voices, with 2 videos across 1 sources.
- Jun 8, 2026
- Jun 5, 2026
- May 9, 2026
- Apr 9, 2026
- Mar 17, 2026
Bridge the gap between local prototypes and production agents Most developers building with large language models hit a wall when transitioning from a local script to a production environment. In a local environment, an agent failing halfway through a task is a minor annoyance. In production, that failure means lost state, wasted compute tokens, and a broken user experience. Vercel has introduced the Workflow DevKit to solve exactly this: the "extra effort" required to make agents reliable, observable, and durable. The core problem with standard agent loops is that they are inherently volatile. If your AI SDK agent is running a long sequence of tool calls and the serverless function times out or the connection drops, you lose everything. Traditionally, fixing this required wiring up complex message queues, persistent databases, and custom retry logic. The Workflow DevKit replaces that infrastructure with a single TypeScript library that runs on any cloud, providing first-class observability and durability out of the box. Prerequisites and the essential toolkit To follow along with this implementation, you should be comfortable with TypeScript and the Next.js framework. Familiarity with the AI SDK (formerly Vercel AI SDK) is helpful, as we will be using its streaming and tool-calling patterns. Key Libraries & Tools - **Workflow DevKit**: The primary orchestration library used to define steps, manage persistence, and handle retries. - **AI SDK**: Used for managing the LLM interaction and streaming text/data to the client. - **Next.js**: The React framework providing the API routes and frontend structure. - **Vercel Sandbox**: A secure, isolated environment (micro-VM) used by the agent to execute code and manage files. Refactor the agent loop into an orchestration layer Converting a standard agent into a workflow-supported one involves moving the logic from a standard API handler into a deterministic orchestration function. This function acts as the "brain" that manages the sequence of operations. Step 1: Installation and Configuration First, install the necessary packages and update your compiler settings to handle the workflow logic. ```bash npm install workflow @workflow/next ``` In your `next.config.js`, you must wrap your configuration to allow the Workflow DevKit to bundle your workflow code separately. This separation ensures that the orchestration layer remains deterministic and free of side effects. ```javascript import { withWorkflow } from 'workflow/next'; const nextConfig = { // your existing config }; export default withWorkflow(nextConfig); ``` Step 2: Define the Workflow Function Create a new file (e.g., `code-workflow.ts`) and use the `use workflow` directive. This directive tells the compiler that this function is an orchestration layer. Under the hood, it compiles this into a separate bundle to ensure no state pollution occurs between runs. ```typescript "use workflow"; import { start } from "workflow/api"; import { DurableAgent } from "./agent-utils"; export async function codeWorkflow(messages: any[]) { const agent = new DurableAgent(); const writable = getWritable(); // Gets the stream for this workflow await agent.run({ messages, writable }); } ``` Isolate side effects using the Step Pattern In a workflow, you distinguish between the **orchestration layer** (which must be deterministic) and **steps** (where side effects like API calls and database writes happen). When a function is marked as a step, its input and output are cached. If the workflow needs to restart, it re-runs the orchestration code but skips the actual execution of the step, simply returning the cached result. Marking Tools as Steps For an AI agent, every tool call should be a step. This prevents the agent from, for example, charging a credit card twice if a network error occurs after the tool execution but before the next LLM call. ```typescript export const createSandbox = { execute: async (args: any) => { "use step"; // Marks this specific execution as a durable step const sandbox = await vercelSandbox.create(); return { id: sandbox.id }; } }; ``` By adding `"use step"` to your tool definitions, you gain automatic retries and durability. If your Vercel Sandbox creation fails due to a temporary API hiccup, the workflow will automatically retry that specific step based on your defined policy. Implement resumable streams for durable sessions One of the most powerful features of the Workflow DevKit is the ability to resume a session even if the user closes their browser or the server restarts. This is achieved by separating the stream from the API handler. The stream lives in the workflow's persistence layer (like Redis in production or a local file in development). Client-Side Reconnection To support this, your API must return the `runId`. The client can then use this ID to check for an existing session and reconnect to the stream. ```typescript // API Handler: chat/route.ts export async function POST(req: Request) { const { messages } = await req.json(); const run = await start(codeWorkflow, messages); return new Response(run.stream, { headers: { "x-workflow-id": run.runId } }); } ``` On the frontend, you can use a transport layer that checks for a stored `runId` and calls a dedicated "resume" endpoint rather than starting a fresh chat. This ensures that even if an agent task takes 10 minutes, the user can always see the progress. Master the long-running agent with Sleep and Webhooks Standard serverless functions have strict timeouts (often 30 seconds to 15 minutes). AI agents often need to perform tasks over days or wait for human input. The Workflow DevKit handles this by "suspending" the execution. When you call `sleep`, the function literally stops running and consumes zero resources until the timer expires. Adding a Sleep Tool You can expose this capability to the LLM as a tool. This allows the agent to schedule its own future tasks. ```typescript import { sleep } from "workflow"; export const sleepTool = { execute: async ({ duration }) => { // No "use step" needed because sleep is a built-in step await sleep(duration); return { status: "awoken" }; } }; ``` Human-in-the-loop with Webhooks For tasks requiring approval (like deploying code to production), you can generate a webhook. The workflow will pause indefinitely until that webhook is triggered. ```typescript import { createWebhook, awaitWebhook } from "workflow"; // Inside a workflow const hook = await createWebhook(); console.log(`Please approve here: ${hook.url}`); const result = await awaitWebhook(hook); // Workflow resumes only after the human clicks the link ``` Essential Syntax and Best Practices Syntax Notes - **Directive Placement**: The `"use workflow"` directive must be at the top of the function body or file to trigger the specialized compiler. - **Determinism**: Never use `Math.random()` or `new Date()` directly inside the orchestration function. If you need these values, wrap them in a step so the value is cached and consistent during replays. - **Implicit Streams**: Use `getWritable()` within your steps to write data back to the UI. This ensures that data packets are correctly sequenced even across retries. Tips & Gotchas - **Version Compatibility**: If you update your code while a workflow is running, the Workflow DevKit can perform compatibility checks. If the step signatures have changed significantly, you may need to cancel the run or use the upcoming "upgrade" feature to migrate the state. - **Local Debugging**: Use the `npx workflow web` command. This launches a local dashboard where you can inspect every step's input and output, manually trigger webhooks, and visualize the event log. - **Sandbox State**: While the workflow manages the *orchestration* state, external systems like a Vercel Sandbox maintain their own state. Ensure your steps are idempotent; if a file-writing step is retried, it should overwrite the file rather than appending to it, unless appending is the intended behavior.
Jan 6, 2026The Quantitative Path to High-Stakes Venture Capital Success in venture capital rarely follows a linear trajectory, but for Andrei Brasoveanu, a partner at Accel, the journey began with the rigorous logic of mathematics. Growing up in Romania, Brasoveanu’s early life revolved around international math competitions, a foundation that eventually secured him a scholarship to the United States. This move marked his first experience with the "can-do" energy of American ambition, a trait he now looks for in the founders he backs across Europe and Israel. Before entering the venture world, Brasoveanu spent a decade on the East Coast, eventually working as a quantitative analyst in high-frequency trading. This period provided a window into systematic investing and the bleeding edge of technology applications. When he joined Accel eleven years ago, he brought that analytical rigor to the London office. Today, his strategy is defined by a mix of deep technical understanding and an unwavering focus on the human element of company building. He operates with the belief that while markets and technologies are in constant flux, the character and intensity of the founder remain the only reliable constants. Why Intensity and Brainpower Trump Industry Experience The search for the next unicorn often leads investors toward established hubs and pedigreed resumes, but Andrei Brasoveanu argues that the most promising "gems" are frequently hidden in unobvious locations. He cites Humio, a logging technology firm based in Aarhus, Denmark, as a prime example. The team was highly technical but operated outside the traditional VC orbit. By backing them early, Accel helped scale a solution that challenged legacy leaders like Splunk, eventually leading to a successful integration with CrowdStrike. When evaluating these early-stage opportunities, Brasoveanu prioritizes sheer intensity and drive, ideally paired with a cerebral, thoughtful approach. Interestingly, he does not over-index on previous experience. Many of his most successful investments, such as Celonis, were led by first-time founders who were "hungry" and capable of learning at a chaotic pace. In the case of Celonis, a Munich-based team of three founders in their twenties bootstrapped an academic project into a global leader in process mining. Their success wasn't born from a deep resume but from a willingness to experiment—evidenced by their early decision to test the market by charging €100,000 for a service they initially considered pricing at €5,000. Combatting Fake Traction with Founder Conviction One of the most significant challenges in modern venture capital is the rise of "fake traction." With easier access to distribution channels and the ability to sell to a network of fellow startups, many companies show early growth that fails to "cross the chasm" to broader enterprise adoption. Brasoveanu warns that the business model that gets a company to its first few million in revenue is rarely the one that leads to greatness. This reality is why Accel remains conviction-driven at the seed stage, often backing teams before they have a product or even a fully formed idea. By focusing on the founder as the anchor, Accel can weather the inevitable pivots that occur as markets evolve. Brasoveanu believes a VC's role is divided: 80% is what he calls "hygiene work"—helping founders avoid common mistakes in hiring, option plans, and M&A processes. The remaining 20% involves navigating "crucible moments," such as intense competitive threats or fundamental disagreements between co-founders. In these high-pressure scenarios, the relationship between the investor and the founder, built on transparency and mutual respect, becomes the deciding factor in the company’s survival. The Vibe Coding Revolution and the Future of Custom Software The landscape of software development is undergoing a seismic shift with the emergence of "vibe coding" and AI-native stacks. This trend, which allows for near-instant creation of back-ends and front-ends, is lowering the barrier for non-technical creators. However, Brasoveanu holds a somewhat controversial view: he believes this environment actually increases the value of truly technical founders. As technology becomes more accessible, the edge goes to those who understand core technical principles and can orchestrate complex systems most effectively. This shift is also paving the way for "personalized SaaS." Brasoveanu notes that large enterprises may eventually move away from bloated, one-size-fits-all solutions like Salesforce in favor of homegrown, tailor-made software built internally with AI assistance. To capitalize on this, Accel recently led the seed round for Polar, a Swedish payments infrastructure startup founded by Birk Jernström. Polar aims to become the payment standard for this new AI-native stack, offering a streamlined experience that legacy providers like Stripe can no longer deliver as they become increasingly "bloated." Strategic Orchestration of the Unicorn Network A critical component of Accel's strategy is the intentional orchestration of its network. When backing a new company like Polar, Brasoveanu doesn't just provide capital; he brings in a cadre of strategic angels from the Accel family, such as the founders of Vercel, Supabase, and Framer. This isn't a mere PR tactic. By surrounding early-stage founders with seasoned operators who have achieved scale, Accel creates a feedback loop of mentorship and potential partnerships. This collaborative approach extends internally across Accel’s global offices. The firm operates as one cohesive unit, sharing insights between early-stage and growth-fund teams. This cross-pollination allows them to identify "holes in the stack"—identifying a need for specialized payments through Polar while simultaneously backing the infrastructure backbone via Supabase. By maintaining a boutique, personal feel despite their institutional scale, Accel continues to position itself as a "kingmaker" in the global tech ecosystem, betting on the individual's ability to disrupt the status quo.
Jul 30, 2025Open source dominance through modular architecture Building AI applications that scale to millions of users requires a shift from complex monolithic thinking to a modular, lean architectural approach. Hassan El Mghari, Lead Developer Relations at Together AI, demonstrates that the most successful apps—like LlamaCoder or Blinkshot—rely on a streamlined four-step flow. The user provides input, the system makes a single targeted API call to an open-source model, the result is stored in a serverless database, and the output is served immediately. This simplicity allows developers to prioritize user experience and speed over complex backend orchestration. The modern full-stack AI tech stack To replicate this success, developers must leverage tools that minimize infrastructure friction. The recommended stack focuses on TypeScript-first libraries and serverless scaling: * **AI Inference**: Together AI for querying open-source models like Llama 3 or DeepSeek. * **Framework**: Next.js with TypeScript for a unified full-stack environment. * **Database**: Neon for serverless Postgres and Prisma as the ORM. * **Authentication**: Clerk for rapid user management setup. * **UI/UX**: Tailwind CSS and Shadcn UI to ensure professional design without custom CSS bloat. * **Observability**: Helicone for LLM-specific analytics and Plausible for web traffic. Code walkthrough for rapid prototyping The goal is to maintain a single API endpoint. In a typical Next.js Route Handler, you can trigger a model inference and return the stream directly to the client. This reduces latency and improves the perceived performance that users expect from modern AI tools. ```typescript import { Together } from "together-ai"; const together = new Together({ apiKey: process.env.TOGETHER_API_KEY }); export async function POST(req: Request) { const { prompt } = await req.json(); // Step 2: Single API call to a high-performance OSS model const response = await together.chat.completions.create({ model: "meta-llama/Llama-3-70b-chat-hf", messages: [{ role: "user", content: prompt }], stream: true, }); // Step 4: Stream response back to the UI for instant feedback return new Response(response.toReadableStream()); } ``` Seven rules for AI virality Hassan El Mghari emphasizes that 80% of development time should be spent on the UI rather than the model itself. A beautiful, intuitive interface makes simple functions, such as PDF summarization, feel like premium products. Developers should launch within two days of a new model release to capture the "new tech" trend. By keeping apps free and open-source, builders create a viral loop where users share the output and other developers contribute to the code, effectively outsourcing marketing through community engagement. Success in this field is a numbers game; shipping one app a month is the baseline for finding a hit that resonates with millions.
Jul 15, 2025Overview Integrating Next.js with Laravel provides a potent combination of a high-performance React frontend and a robust, feature-rich PHP backend. While Inertia.js offers a seamless full-stack experience, many developers prefer a decoupled architecture where Laravel serves strictly as an API layer. This approach allows for incremental adoption of Laravel's features—like queues, mailables, and advanced authentication—into an existing frontend without migrating the entire codebase at once. Prerequisites To follow along, you should have a solid grasp of **JavaScript (ES6+)** and **PHP**. You will need Node.js and Composer installed locally to manage dependencies for both frameworks. Familiarity with React hooks and RESTful API concepts is essential. Key Libraries & Tools - **Laravel Sanctum**: Provides a featherweight authentication system for SPAs and mobile applications. - **Next.js 15**: The React framework for production, utilizing Server Components for optimized data fetching. - **HTTPie**: A user-friendly command-line HTTP client for testing API endpoints. Code Walkthrough 1. Setting up the Laravel API Initialize a new Laravel project and install the API scaffolding to prepare the backend for external requests. ```bash laravel new api php artisan install:api ``` This command configures Laravel Sanctum and creates the `api.php` routes file. Define a simple test route in `routes/api.php`: ```php Route::get('/hi', function () { return response()->json([ 'message' => 'Hello from Laravel', 'description' => 'Your API is live!' ]); }); ``` 2. Fetching Data in Next.js In Next.js 15, fetch data directly within a **Server Component**. This keeps sensitive logic off the client and improves performance. ```javascript export default async function Page() { const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/api/hi`); const data = await res.json(); return ( <div> <h1>{data.message}</h1> <p>{data.description}</p> </div> ); } ``` 3. Implementing Sanctum Token Auth For authorized requests, use Sanctum to issue tokens. On the Next.js side, once you receive a token from a login endpoint, store it as a secure cookie. Include this token in the `Authorization` header for subsequent requests: ```javascript const response = await fetch('/api/bookmarks', { headers: { 'Authorization': `Bearer ${token}`, 'Accept': 'application/json', }, }); ``` Syntax Notes Laravel uses **Arrow Functions** in routes for brevity and **Resource Classes** to transform JSON responses. Next.js 15 emphasizes **Async/Await** within components, moving away from `useEffect` for initial data loads. Always use `process.env` for API URLs to ensure environment consistency. Practical Examples You can use this setup to offload heavy processing. For instance, a Next.js frontend can trigger a **Laravel Queue** via an API call to process video uploads or generate complex reports in the background without blocking the UI. Tips & Gotchas - **CORS Issues**: Ensure your `config/cors.php` in Laravel allows the origin where your Next.js app is hosted. - **Cache Management**: Next.js 15 caches fetch requests by default. If your data changes frequently, use `revalidate` or `no-store` options. - **Domain Matching**: If using Sanctum's cookie-based auth instead of tokens, the frontend and backend must share the same top-level domain.
May 8, 2025The Observability Frontier: Scaling with Laravel Nightwatch Jess Archer kicked off Day 2 by introducing Laravel Nightwatch, a tool that represents the next phase of Laravel's observability story. While Laravel Pulse serves as a self-hosted entry point, Nightwatch is an external service designed to handle billions of events. This distinction is critical: Pulse is limited by the overhead of your local MySQL or PostgreSQL database, while Nightwatch offloads that ingestion to dedicated infrastructure. Architectural Efficiency and Low Impact The Nightwatch Agent operates with a "low-level, memory-sensitive" approach. It avoids higher-level abstractions like Laravel Collections during the critical data-gathering phase to minimize the observer effect. The agent batches data locally on the server, waiting for either 10 seconds or 8 megabytes of data before gzipping and transmitting it. This ensures that performance monitoring doesn't become the bottleneck for high-traffic applications. Real-World Data: The Forge Case Study The power of Nightwatch was demonstrated through a case study of Laravel Forge. In a single month, Forge generated 1.5 billion database queries and 119 million requests. Nightwatch identified a specific issue where a cache-clearing update in a package caused hydration errors when old cached objects couldn't find their missing classes. Archer's team used Nightwatch to pinpoint this 500 error spike and resolve it within five minutes. This level of granularity—tracing a request to a specific queued job and then to a specific cache miss—is what sets Nightwatch apart from traditional logging. The Virtue of Contribution: Open Source as a Growth Engine Chris Morell shifted the focus from tools to the people who build them. His session wasn't just a technical guide to git workflows; it was a philosophical exploration of how open-source contribution serves as a mechanism for personal and professional growth. He utilized Aristotle's "Nicomachean Ethics" to frame the act of submitting a Pull Request (PR) as a practice of virtues like courage, moderation, and magnanimity. Tactical Moderation in PRs The most successful contributions are often the smallest. Morell echoed Taylor Otwell's preference for "two lines changed with immense developer value." This requires a developer to practice moderation—stripping away non-essential features and avoiding the temptation to rewrite entire files based on personal stylistic preferences. A key takeaway for new contributors is the "Hive Mind" approach: spend more time reading existing code to understand the "vibes" and conventions of a project before writing a single line. This ensures that your code looks like it was always meant to be there, increasing the likelihood of a merge. The Live Pull Request In a demonstration of courage, Morell submitted a live PR to the Laravel Framework during his talk. The PR introduced a string helper designed to format comments in Otwell's signature three-line decreasing length style. By using GitHub Desktop to manage upstream syncs and ensuring all tests passed locally, Morell illustrated that the barrier to entry is often psychological rather than technical. Even with a 50% rejection rate for his past PRs, he argued that the resulting community connections and skill leveling make the effort a "win-win." Testing Refinement: Advanced Features in PHPUnit 12 Sebastian Bergman, the creator of PHPUnit, provided a deep dive into the nuances of testing. With PHPUnit 12 launching, Bergman addressed the common misconception that Pest replaces PHPUnit. In reality, Pest is a sophisticated wrapper around PHPUnit's event system. PHPUnit 10 was a foundational shift to an event-based architecture, and PHPUnit 12 continues this trend by removing deprecated features and refining the "outcome versus issues" model. Managing Deprecations and Baselines A common headache for developers is a test suite cluttered with deprecation warnings from third-party vendors. PHPUnit now allows developers to define "first-party code" in the XML configuration. This enables the test runner to ignore indirect deprecations—those triggered in your code but called by a dependency—or ignore warnings coming strictly from the vendor directory. For teams that cannot fix all issues immediately, the "Baseline" feature allows them to record current issues and ignore them in future runs, preventing "warning fatigue" while ensuring new issues are still caught. Sophisticated Code Coverage Bergman urged developers to look beyond 100% line coverage. Line coverage is a coarse metric that doesn't account for complex branching logic. Using Xdebug for path and branch coverage provides a dark/light shade visualization in reports. A dark green line indicates it is explicitly tested by a small, focused unit test, while a light green line indicates it was merely executed during a large integration test. This distinction is vital for mission-critical logic where "executed" is not the same as "verified." Fusion and the Hybrid Front-End Evolution Aaron Francis introduced Fusion, a library that pushes Inertia.js to its logical extreme. Fusion enables a single-file component experience where PHP and Vue.js (or React) coexist in the same file. Unlike "server components" in other ecosystems where the execution environment is often ambiguous, Fusion maintains a strict boundary: PHP runs on the server, and JavaScript runs on the client. Automated Class Generation Behind the scenes, Fusion uses a Vite plugin to extract PHP blocks and pass them to an Artisan command. This command parses the procedural PHP code and transforms it into a proper namespaced class on the disk. It then generates a JavaScript shim that handles the reactive state synchronization. This allows for features like `prop('name')->syncQueryString()`, which automatically binds a PHP variable to a URL parameter and a front-end input without the developer writing a single route or controller. The Developer Experience Francis focused heavily on the developer experience (DX), specifically Hot Module Reloading (HMR) for PHP. When a developer changes a PHP variable in a Vue file, Fusion detects the change, re-runs the logic on the server, and "slots" the new data into the front end without a page refresh. This eliminates the traditional "save and reload" loop, bringing the rapid feedback of front-end development to backend logic. Francis's message was one of empowerment: despite being a former accountant, he built Fusion by "sticking with the problem," encouraging others to build their own "hard parts." Mobile Mastery: PHP on the iPhone Simon Hamp demonstrated what many thought impossible: a Laravel and Livewire application running natively on an iPhone. NativePHP for Mobile utilizes a statically compiled PHP library embedded into a C/Swift wrapper. This allows PHP code to run directly on the device's hardware, rather than just in a remote browser. Bridging to Native APIs The technical challenge lies in calling native hardware functions (like the camera or vibration motor) from PHP. Hamp explained the use of "weak functions" in C that serve as stubs. When the app is compiled, Swift overrides these stubs with actual implementations using iOS-specific APIs like CoreHaptics. On the PHP side, the developer simply calls a function like `vibrate()`. This allows a web developer to build a mobile app using their existing skills in Tailwind CSS and Livewire while still accessing the "Native" feel of the device. The App Store Reality Critically, Hamp proved that Apple's review process is no longer an insurmountable barrier for PHP. His demo app, built on Laravel Cloud, passed review in three days. This marks a turning point for the ecosystem, potentially opening a new market for "web-first" mobile applications that don't require learning React Native or Flutter. While current app sizes are around 150MB due to the included PHP binary, the tradeoff is a massive increase in productivity for the millions of existing PHP developers. Conclusion: The Expanding Village The conference concluded with Cape Morell's moving talk on the "Laravel Village." She highlighted that the technical tools we build—whether it's the sleek new Laravel.com redesign by David Hill or the complex API automation of API Platform—are ultimately about nurturing the community. The $57 million investment from Accel was framed not as a "sell-out," but as an investment in the village's future, ensuring that the framework remains a beacon for productivity and craftsmanship. As the ecosystem moves toward Laravel 12 and the full launch of Laravel Cloud, the focus remains on the "Artisan"—the developer who cares deeply about the "why" behind the code.
Feb 4, 2025The PHP ecosystem is on the verge of its most significant infrastructure shift in a decade. With the impending release of Laravel Cloud, the barrier between writing code and shipping it to production is about to become thinner than ever. During a detailed session at the Laravel Worldwide Meetup, Taylor Otwell provided a comprehensive look at how this platform intends to reshape developer workflows. This isn't just another hosting provider; it's a fundamental reimagining of how Laravel applications interact with the metal they run on. The Infrastructure Spectrum: Forge, Vapor, and Cloud To understand where Laravel Cloud fits, you have to look at the existing Laravel ecosystem. For years, Laravel Forge has served as the gold standard for provisioned VPS management. It acts as a devops assistant, configuring servers on your own DigitalOcean or AWS accounts. However, the responsibility for those servers—updates, monitoring, and general health—still falls on the developer. Laravel Vapor took a different path by utilizing AWS Lambda for serverless execution. While powerful, serverless brings its own set of architectural constraints and pricing complexities. Cloud occupies the "fully managed" space. Unlike its predecessors, your applications run inside clusters managed entirely by the Laravel team. This shifts the burden of server health, monitoring, and orchestration away from the developer. If a server goes down at 3:00 AM, it is the Laravel team's problem to solve, not yours. This model mimics the ease of use found in platforms like Vercel or Heroku but optimizes every layer specifically for the PHP and Laravel stack. Architecture and Performance Strategy Underneath the hood, Laravel Cloud is built on AWS and utilizes Kubernetes for orchestration. This choice is deliberate. By staying within the AWS ecosystem, the platform ensures low-latency connections to the vast array of external services that modern developers rely on. Whether it is Amazon S3 for storage or third-party APIs, being physically close to the core of the internet's infrastructure matters for performance. One of the most striking technical features is the platform's approach to hibernation. On the Sandbox tier, applications can be configured to "sleep" after a period of inactivity. When a new request arrives, the platform boots the app back up. While this adds a few seconds of latency to that initial request, it allows for a pricing model where developers pay almost nothing for staging environments or hobby projects. This is a massive departure from traditional VPS hosting where you pay for the idle CPU cycles of a server that is doing nothing for 90% of the day. The Economics of Modern Hosting Taylor Otwell outlined a pricing strategy designed to grow with the developer. The Sandbox tier starts at zero dollars for the base subscription, charging only for compute usage. This makes it the ideal starting point for Laravel Bootcamp students or developers testing a quick proof of concept. The entry-level cost for a 24/7 small application is estimated to land between $5 and $7 per month, putting it in direct competition with entry-level VPS droplets but with the added value of full management. For professional applications, the Production plan (targeted at roughly $20/month plus usage) unlocks the full power of the platform. This includes the ability to use custom domains and scale to much larger replicas. Crucially, the scaling model is designed to prevent "bill shock." Unlike purely serverless environments where a traffic spike can lead to infinite (and infinitely expensive) scaling, Laravel Cloud allows you to set hard limits on the minimum and maximum number of replicas. You maintain control over your maximum exposure while the platform handles the horizontal scaling within those bounds. Environments and the Deployment Pipeline The ability to spin up isolated environments is the "killer feature" for team productivity. The platform makes it trivial to create a new environment based on a specific GitHub branch in under a minute. This opens the door for robust preview deployments. Imagine a workflow where every Pull Request automatically generates a unique URL with its own compute settings and environment variables. This isolation extends to the data layer. The platform's PostgreSQL implementation supports database branching. This means you can create a staging environment that isn't just an empty shell, but a branch of your production data (schema and records) created in seconds. It allows for high-fidelity testing of migrations or heavy queries without ever touching the production database or spending hours on manual exports and imports. This level of environmental parity has historically been the domain of high-end enterprise devops teams; Laravel Cloud is democratizing it for every developer. Persistence and Database Support While the platform is launching with heavy support for PostgreSQL, MySQL support is a primary focus for the general availability release. Statistics show that roughly 90% of Laravel applications currently utilize MySQL, making it an essential component of the ecosystem. The platform also includes S3-compatible file storage and Redis integration out of the box. Importantly, the platform does not force a "walled garden" approach. If you have an existing database on PlanetScale, Timescale, or Amazon RDS, you can simply point your Laravel Cloud application to those external connection strings. This flexibility is vital for migration. Teams can move their application logic to Cloud while keeping their data layer on existing infrastructure, gradually migrating pieces as they feel comfortable. Observability with Nightwatch Monitoring is not an afterthought. While the dashboard provides core metrics like CPU and memory usage, the platform is designed to work in tandem with Nightwatch, the upcoming observability tool from the Laravel team. Nightwatch goes beyond simple uptime checks, providing deep insights into the slowest routes and the most expensive database queries. Taylor Otwell noted that the team is already dogfooding these tools. By running Laravel Forge traffic through Nightwatch, they identified and fixed N+1 query issues that were previously hidden in the logs. This vertical integration between the framework, the hosting platform, and the monitoring tools creates a feedback loop that simply does not exist when using generic hosting providers. It ensures that when you see a performance dip, you have the specific context needed to fix it within the Laravel codebase. The Road Ahead: Beyond Laravel The long-term vision for Laravel Cloud is ambitious. While the initial focus is squarely on the Laravel "bullseye," the underlying architecture is capable of much more. Experimental runs have already seen Symfony applications booting on the platform. Future milestones include official support for other PHP projects like WordPress and Drupal, and eventually, other languages entirely, such as Ruby on Rails, Django, or Node.js. General availability is targeted for February 2025. This launch represents the culmination of the largest project the Laravel team has ever undertaken. For the community, it signifies a move toward a more professional, managed, and scalable future. It's about letting developers focus on the logic that makes their business unique, while the platform handles the complexity of the modern cloud.
Dec 17, 2024The Evolution of the PHP Ecosystem For over a decade, Laravel has stood as the gold standard for developer experience in the PHP world. Taylor Otwell built more than just a framework; he cultivated an ecosystem that prioritized "developer happiness" through tools like Forge, Vapor, and Envoyer. However, these tools always functioned as orchestrators for third-party infrastructure. Users still had to link their own AWS or DigitalOcean accounts, leaving them responsible for the underlying server management. This model worked well for years, but as neighboring ecosystems simplified deployment to a single command, the gap between PHP and modern competitors began to widen. The recent announcement of a $57 million Series A investment from Accel marks a seismic shift for the project. For a company that remained bootstrapped and profitable since its inception in 2011, taking venture capital was never about survival. It was about reaching a fork in the road. On one path lay the comfort of coasting on existing success; on the other lay the ambition to build a managed infrastructure platform that could rival the ease of use found in the JavaScript or Rust communities. By choosing to "swing for the fences," the team has committed to a future where Laravel is not just a framework, but a holistic cloud provider. The Vision for Laravel Cloud Laravel Cloud represents the culmination of a ten-year journey toward seamless deployment. The goal is simple yet technically daunting: moving an application from a local machine to a production-ready, scalable environment in less than sixty seconds. This project addresses the "last mile" problem that has plagued PHP developers. While Laravel Herd solved local development by allowing users to go from a fresh laptop to a running application without even installing PHP manually, deployment still required server-side knowledge. This new platform shifts the responsibility of monitoring, backups, and scaling from the developer to the Laravel team. It represents a move toward managed infrastructure where the environment is specifically tuned for the framework. By biting the bullet and managing the infrastructure directly, the company can offer a level of integration and performance that was previously impossible when working through third-party cloud providers. This isn't just about hosting; it’s about creating a default web stack where every piece of the puzzle—from the database to background jobs—is pre-configured and optimized. Why Accel and the VC Path? Raising $57 million from Accel wasn't a snap decision. The firm spent most of 2023 courting Taylor Otwell, showing up at Laracon events worldwide and demonstrating a deep understanding of open-source dynamics. Accel has a history of backing developer-centric powerhouses like Vercel, Sentry, and Pusher. This pedigree was crucial for a founder who identifies primarily as a programmer rather than a traditional corporate executive. The capital allows for a significant team expansion, which has already grown from a lean group of nine to over thirty people. Building a global cloud infrastructure is capital-intensive and requires a level of engineering depth that a small, bootstrapped team simply cannot sustain while also maintaining thirty-plus open-source packages. Crucially, the partnership allows the core team to stay focused on product design. With the addition of Tom Creighton as COO and Andre Valentine as Director of Engineering, the company has added the necessary structure to manage its growth without drowning the creative process in red tape. A New Era of Collaboration The investment has also integrated Laravel into an elite tier of software companies. The funding round included angel investments from notable figures like Guillermo Rauch (CEO of Vercel), David Cramer (Founder of Sentry), and Bryant Chou (CTO of Webflow). These aren't just names on a cap table; they are fellow "hackers" who have built tools that define the modern web. Guillermo Rauch, for instance, provides a blueprint for what Laravel Cloud aims to achieve for PHP. Vercel transformed the Next.js experience by making deployment an afterthought. By collaborating with these leaders, the team gains access to insights on scaling, infrastructure challenges, and community growth. This network effect ensures that as the ecosystem expands, it does so with the guidance of those who have already successfully navigated these waters. Implications for the Developer Community For the average developer, this shift promises more polished, robust tools. The fear that venture capital might dilute the "soul" of an open-source project is common, but the strategy here appears different. Instead of pivots or monetization of core features, the funding is being used to build the ambitious tools that were previously "too big" to attempt. The team remains committed to its open-source roots, continuing to triage pull requests and ship free packages while the cloud platform provides the financial engine for long-term sustainability. This evolution aims to make PHP the default choice for the next generation of web developers. By removing the friction of server management and providing a world-class local-to-production pipeline, the ecosystem is positioning itself to capture developers who might otherwise drift toward more "modern" but often more fragmented stacks. The "Builder Ethos" remains the North Star: whether you are an indie hacker or an enterprise organization, the goal is to help you ship faster and sleep better at night.
Sep 5, 2024