---
title: "Discussion on \"How We Leverage Serverless for Backing up Your Posts.\" | Hashnode"
description: "Discussion on \"How We Leverage Serverless for Backing up Your Posts.\". A Story of Implementing GitHub Backups in a Serverless Way With Websockets, Lambda, Sqs."
url: "https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How We Leverage Serverless for Backing up Your Posts.](https://engineering.hashnode.com/serverless-github-backups?utm_source=hashnode&utm_medium=feed)

A Story of Implementing GitHub Backups in a Serverless Way With Websockets, Lambda, Sqs.

Mar 30, 2022 · 10 min read · engineering.hashnode.com  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-cdk](https://hashnode.com/tag/aws-cdk)
-   [#websockets](https://hashnode.com/tag/websockets)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#github](https://hashnode.com/tag/github)

## Written by

[Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

@SandroVolpicella · Germany 🇩🇪

  
[View profile](https://hashnode.com/@SandroVolpicella)

Fullstack Engineer @Hashnode. I love building serverless things and talk about it 🙂

I am a fullstack engineer working here @ hashnode. I love the cloud and really like to build serverless things that scale. https://awsfundamentals.com 📕 https://cloudwatchbook.com 📙

## Responses 4

Markdown supported · ⌘↵ to post

[Forex insights](https://hashnode.com/@Forexinsights)

[May 6, 2024](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/6638d770300e9201b485aa8e)

[idm.in/KhJrpHi](https://idm.in/KhJrpHi) XAUBOT is a Gold Forex Trading Robot developed by Adak Academy. With a high-profit margin and low drawdown, XAUBOT is the perfect addition to any trading platforms. telegram channel:[t.me/xaubotAdvice](https://t.me/xaubotAdvice)

[Forex insights](https://hashnode.com/@Forexinsights)

[May 6, 2024](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/6638d75efddc2c766ce27f6a)

[idm.in/KhJrpHi](https://idm.in/KhJrpHi) XAUBOT is a Gold Forex Trading Robot developed by Adak Academy. With a high-profit margin and low drawdown, XAUBOT is the perfect addition to any trading platforms. telegram channel:[t.me/xaubotAdvice](https://t.me/xaubotAdvice)

[Saikat Roy](https://hashnode.com/@njmsaikat)

[Apr 4, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/624a88a016cdedfe9f7cfb93)

Great feature indeed but really good to know about the whole process. On the way, got a elaborate idea about aws system.

[Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

[Apr 4, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/624a88a016cdedfe9f7cfb93#reply-624b31ad16cdedfe9f7d1102)

Cool glad you've liked it! 🙂

[Juan Alvarez](https://hashnode.com/@Juanzen)

[Mar 31, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/6245a1cf93b269f2e37432aa)

Great article. I really enjoy reading these kinds of posts, working through the architecture of a feature that seems simple from the outside, but has its challenges internally. **Thanks for sharing!**

[Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

[Apr 4, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/6245a1cf93b269f2e37432aa#reply-624b31b34b4dde0dc0beb0ae)

Glad to hear that!

[Jorge Romero](https://hashnode.com/@JorgeRL)

[Mar 30, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/62449583114d74ee1e63219d)

That was really insightful! I learned a lot. Thank you [Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

-   I wasn't able to follow all of the DynamoDB part. Mainly because I have never used it. But I got the broad idea.
    
-   It seems like a lot more work went into getting that in-progress feedback than the actual backup feature. I look forward to read how you iterate on that!
    
-   I also have a small question. `publicationID` belongs to a user or to a blog? I am guessing it is for each blog. So any user can have several publicationIDs? I am not familiar with Hashnode's API, but I have been toying around with it a little. And it seems to me that a user can only have a single publication (???) 😅
    

I am just figuring serverless out so this helps a lot!

By the way, I love the drawings :D

[Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

[Mar 31, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/62449583114d74ee1e63219d#reply-6245383c93b269f2e37423b7)

Thanks for your comment!

I get that the whole approach is a bit confusing or seems a lot for a simple feature like that. But this shows some complexities of an async process.

**DynamoDB**: DynamoDB is mainly there for getting the connection back to the user. Since we don't have a websocket server such as socket.io we need to store the `connectionId` somewhere to respond to the user. This is what DynamoDB is doing.

**Feedback** Yes a huge part was definitely the whole feedback loop for the enduser. This infrastructure builds the basics now because we can reuse it for other features as well.

**PublicationID** A `publicationId` belongs to a publication. Internally we distinguish between a user and a publication. A user can have several publications, e.g. one team publication and one private publication.

I hope that helps. Drawings are in excalidraw which is an awesome tool! 🙂

[Lizhiyu](https://hashnode.com/@lycheefish)

[Mar 30, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/62446af4988211ec79b7ca60)

Great and generous feature

[Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

[Mar 31, 2022](https://hashnode.com/posts/serverless-github-backups/62443f47fca8a5eb4a9e6594/comment/62446af4988211ec79b7ca60#reply-62453775114d74ee1e632dcc)

Thanks Steffan 🙂
