Last month, Amethyst's Image proxy processed

~22,000,000 requests with ~4.76 TB of data transferred for $932.90 US dollars.

That is being used ONLY for profile pictures 😱

Reply to this note

Please Login to reply.

Discussion

Is it bad news?

👀

Damn.

Can’t you cache the most requested ones with each client?

Already do. The app will only hit the server if the image is not locally cached.

How long do profile pictures get cached client-side??

Are you funding it privately or do you have investors or other support?

What about charging a few sats a month per user as a voluntary fee (popup once per month with beautiful design and bullet points what cost you need help covering).

Privately

I hope you find investors. Your client is the very best of them all. Also better than Damus.

You should be able to ask people for voluntarily client payment once per month and/or her a few million USD from investors.

Even a 2% fee on all zaps, up to max fee of 1000 sats per zap should be acceptable to most.

I am not sure if I want investors. I raised money before... But I do take donations though :)

wow

Cloud bandwidth costs? Should be able to host this for a small fraction of the cost with a high/unmetered bandwith provider.

Very possible. These costs include a CDN and the proxy server. I set up in 30mins and never touched it :,)

What service is hosting that? I am not running on a CDN, but hetzner has free egress (I do 30-50TB/month on my instance for about $40/month).

Amazon Cloud Front CDN through Edge/Heroku.

Talk to #[2]​ - that amount for hosting is way too much!

Are you doing anything to shrink the images to appropriate sizes?

Not for regular images in posts. We were doing for profile pictures (some are 50mb). But it doesnt seem to be affecting performance anymore.

Certainly it would help your network costs though

Ideally Amethyst doesn't run any servers. Running server/relay and app creates a centralization incentive we don't want to have.

I agree, but in the meantime so you aren't getting killed with cost

We might kill these image proxies if people don't see much difference in performance of the latest APK.

I actually don't right now on wifi.

为个人资料的头像,上个月紫水晶 #Amethyst 花了达932.90美刀。

为何呢,直接URL加载图作头像不行吗?

1. ~有些人用数据量超大超清晰的图作为头像,甚至有的多达50MB。实际显示头像的尺寸那么小,那么大信息展示那么小头像实在浪费。且会影响加载速度(虽可缓存到本地,但首次呢),因此紫水晶进行一次转存,压缩信息加速加载。

2. ~网络环境多变。头像所在的图床,可能被屏蔽或消失。普通Note内图还好,可以通过 https://btc.pics/img 来加载。但头像若被屏蔽,则较麻烦。某些实现端其好友头像有的在有的不在,就是这个问题。

3. ~将来可一定程度上审查,一些被举报多的账号,甚至可主动屏蔽其缓冲头像,作为惩罚。即不论其如何改头像,可在紫水晶上显示为特定图像。当然这个应该未实施。但可以此来威慑各账号,不要随意大量发垃圾和突破底线言论。

lightning:cndx@btcdv.com 🐇ᥬ[🐕]᭄🌿

Legit this is why the more technically able of us should run our own personal media uploaders.

When only used by a small group of people (compared to Amethyst) the costs are way cheaper especially if you use object storage (like S3, but there's plenty of competition offering the same thing now) and it creates a more decentralised environment.

nostr:nevent1qqsyu3sntgj320fpueshj2gcjhv9hw7ew6lshs4xd5rtu3r6grjvujgppamhxue69uhkummnw3ezumt0d5pzq3svyhng9ld8sv44950j957j9vchdktj7cxumsep9mvvjthc2pjuqvzqqqqqqyjyredr

Well, that is because you appear to not cache profile images, no? Or you request the hash of the image and if the servers say it did not change only then you display the image from the cache?

We fully cache them in disk. That's why Amethyst uses up to 2gb of disk.