Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Tutorials
    • All tutorials
      • Deploying a web application using the Java Servlet API
      • Developing a custom integration in API Gateway
        • Overview
        • Management console
        • Terraform
      • Developing CRUD APIs for a movie service
      • Creating an interactive serverless application using WebSocket
      • Working with an API gateway via WebSocket
      • Creating a Node.js function using TypeScript
      • Running a containerized app in Serverless Containers
      • Connecting to YDB from a Cloud Functions Python function
      • Connecting to a YDB database from a Node.js function in Cloud Functions
      • Setting up a Yandex Managed Service for PostgreSQL connection from a container in Serverless Containers
      • Deploying a web app with JWT authorization in API Gateway and authentication in Firebase
      • Developing functions in Functions Framework and deploying them to Yandex Serverless Containers
      • Canary release of a function in Cloud Functions
      • Interactive debugging of functions in Cloud Functions
      • Creating a Yandex Cloud Postbox address and a domain ownership check with Terraform
      • Configuring Postfix to send emails via Yandex Cloud Postbox
  1. Serverless technologies
  2. Serverless-based backend
  3. URL shortener
  4. Overview

URL shortener

Written by
Yandex Cloud
Updated at May 26, 2026

This tool accepts user requests via a public API gateway: Yandex API Gateway. The user receives an HTML page with a URL input field from a hosting service. The Yandex Cloud Functions function sends the entered URL for storage to a Yandex Managed Service for YDB serverless database, shortens it, and returns it to the user. When the user follows the shortened URL, the function retrieves the full URL from the database and performs a redirect.

You can create the infrastructure for your URL shortener using one of these tools:

  • Management console: Create your URL shortener step by step in the Yandex Cloud management console.
  • Terraform: Streamline creating and managing your resources with the infrastructure as code (IaC) approach. Download a Terraform configuration example from the GitHub repository and deploy your infrastructure using the Yandex Cloud Terraform provider.

Was the article helpful?

Previous
Developing a custom integration in API Gateway
Next
Management console
© 2026 Direct Cursus Technology L.L.C.