Skip to content

Azure blob adapter - #1366

Open
OisinHick wants to merge 5 commits into
amark:masterfrom
OisinHick:azure-blob-adapter
Open

Azure blob adapter#1366
OisinHick wants to merge 5 commits into
amark:masterfrom
OisinHick:azure-blob-adapter

Conversation

@OisinHick

Copy link
Copy Markdown

This is a WIP adapter for Azure. It is largely working in regards to booting etc however some fine-tuning is needed to fix how it strobes for the existence of a blob on boot, however, this shouldn't take too long to fix. This request is submitted per @amark advice in the Gun Gitter chat so the community can work further on this. Huge thanks to him for all his help and guidance.

- Added the base file to build on
- Added comment explaining adapter development status

@amark amark left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w000000000000 this is awesome, you're a hero!!! Quick couple anti-crash if-not-using-azure changes tho please.

Comment thread lib/azure.js
let containerClient;

const { Readable } = require('stream');
const { BlobServiceClient, StorageSharedKeyCredential } = require("@azure/storage-blob");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be moved to L17 also

Comment thread lib/server.js
require('./rfs');
require('./rs3');
require('./wire');
require('./azure')

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct! Tho, until you have it 100% working let's keep it commented out in PRs/prod. If a dev doesn't have Azure optionally NPM installed we want to make sure nothing crashes/breaks.

@amark

amark commented Mar 8, 2025

Copy link
Copy Markdown
Owner

meow meow!

@OisinHick

Copy link
Copy Markdown
Author

Seem to be encountering a problem with this in that gun seems to strobe for changes and its causing an error with azure. How does gun perform or how regularly does it strobe? Might be the last hurdle facing this

@amark

amark commented Dec 1, 2025

Copy link
Copy Markdown
Owner

@OisinHick what do you mean strobe? please DM / text me other platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants