<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily" -->

---
title: Serverless A2A with Spin | daily.dev
description: A2A (Agent-to-Agent) is a new open protocol that enables AI agents to discover and communicate with each other. The protocol uses JSON-based agent cards for...
canonical: https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Serverless A2A with Spin | daily.dev
og:description: A2A (Agent-to-Agent) is a new open protocol that enables AI agents to discover and communicate with each other. The protocol uses JSON-based agent cards for...
og:url: https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily
og:image: https://api.daily.dev/og/posts/BAZBVyIlY.png
og:image:alt: Serverless A2A with Spin
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.

# Serverless A2A with Spin

**[Fermyon](https://daily.dev/sources/fermyon)** · 12 min read · 16 upvotes · 0 comments

## Summary

A2A (Agent-to-Agent) is a new open protocol that enables AI agents to discover and communicate with each other. The protocol uses JSON-based agent cards for discovery and JSON-RPC for interaction, supporting three communication modes: asynchronous sessions, streamed sessions, and push notifications. The tutorial demonstrates building a serverless A2A agent using Spin and WebAssembly that provides ethical reasoning using Google's Gemini model. The agent exposes its capabilities through a standardized agent card and handles requests via JSON-RPC, making it discoverable and interoperable with other A2A-compliant agents.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.fermyon.com/blog/a2a-with-spin>

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#serverless](https://daily.dev/tags/serverless), [#webassembly](https://daily.dev/tags/webassembly)

[View this post on daily.dev](https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily)

```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":"Serverless A2A with Spin","url":"https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily"},"datePublished":"2025-07-07T15:29:08.659Z","dateModified":"2026-03-15T05:24:40.183Z","description":"A2A (Agent-to-Agent) is a new open protocol that enables AI agents to discover and communicate with each other. The protocol uses JSON-based agent cards for...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4bb951857e74b16189fce437fa7079c0?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4bb951857e74b16189fce437fa7079c0?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Fermyon","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":"Fermyon","logo":"https://media.daily.dev/image/upload/s--aA5upjFe--/f_auto/v1716188612/logos/fermyon","url":"https://daily.dev/sources/fermyon"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/serverless-a2a-with-spin-bazbvyily","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,serverless,webassembly","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Fermyon","item":"https://daily.dev/sources/fermyon"},{"@type":"ListItem","position":3,"name":"Serverless A2A with Spin"}]}
```

