devs, to random
@devs@fastly.social avatar

CDNs can feel obscure and intimidating when you're just trying to get your site or app online.

@jedisct1 can help. In this blog, he explains how a works, how differs, and how to set up simple distributed caches and compute services.

https://00f.net/2024/05/07/what-is-a-cdn/

kerfuffle, to Java
@kerfuffle@mastodon.online avatar

Who here knows a CDN that offers edge computing capability for the JVM / GraalVM?

AWS Lambda@Edge only supports JavaScript and Python.
Cloudflare only supports JavaScript.
Fastly supports WebAssembly.

#cdn #java #jvm #graalvm #edgecomputing

doctormo, to journalism
@doctormo@floss.social avatar

Hey if you're going to use an open source project as an example of a hack, can you at least let them know in advance you're about to do something reckless so they can prepare?

K. Thanks! 🙄

This doofus used inkscape and wireshark's live gitlab for a bit of a demo hack: https://www.bleepingcomputer.com/news/security/gitlab-affected-by-github-style-cdn-flaw-allowing-malware-hosting/

tiagojferreira, to internet
@tiagojferreira@bolha.us avatar

Não uso muito streaming, mas no início da pandemia, dando suporte às aulas/eventos remotos percebi que nitidamente as soluções Google funcionam mais fluidas.

Não só em relação às soluções on-premisse (Jitsi, ConferênciaWeb, BigBlueButton), mas também em comparação com Zoom, Teams, Skype.

O que Google tem diferente que explicaria isso?

Redes de entrega de conteúdo mais próximas?

Parcerias com provedores de internet, tipo aquilo que o Netflix faz (uma espécie de cache local)?

Algum privilégio nas infraestruturas de transporte de dados?

Alguma otimização ninja em nível de aplicação?

MichaelSchams, to php
@MichaelSchams@mastodon.world avatar

Take the performance of your TYPO3 sites to the next level by using Amazon CloudFront as a content delivery network (CDN) 💪

🎞️ ➤ https://t3rrific.com/videos/typo3-and-amazon-cloudfront/

piefedadmin, to fediverse
@piefedadmin@join.piefed.social avatar

For a very small instance with only a couple of concurrent users a CDN might not make much difference. But if you take a look at your web server logs you’ll quickly notice that every post / like / vote triggers a storm of requests from other instances to yours, looking up lots of different things. It’s easy to imagine how quickly this would overwhelm an instance once it gets even a little busy.

One of the first web performance tools people reach for is to use a CDN, like Cloudflare. But how much difference will it make? In this video I show you my web server logs before and after and compare them.

The short answer is – before CDN: 720 requests. After CDN: 100 requests.

Usually just turning on a CDN with default settings will not help very much, you’ll need to configure some caching rules or settings. By watching your server logs for a while you’ll get a sense for what needs to be cached but check out mine for a starting point:

https://join.piefed.social/wp-content/uploads/2024/02/caching_activity1-1024x577.pngAll these are frequently requested on my instance. Depending on the fediverse platform you have installed, you’ll probably see different patterns and so need different caching settings.

Beware of caching by URI Path because often fediverse software will return different data depending on the Accept header that the requester sets. For example, on PieFed and Lemmy instances a request by a web browser to /post/123 will return HTML to show the post to someone. But when that same URL is requested with the Accept: application/ld+json header set, the response will be an ActivityPub representation of the post! You don’t want people getting activitypub data in their browser and you don’t want to be serving HTML to other instances. Once you spot a URL you want to cache, use a tool like Postman to set the Accept header and make a fake ActivityPub request to your instance and see if you get back HTML or JSON.

Another problem that can happen is that often a response will vary depending on whether the viewer is logged in, or who is logged in. If you can figure out how to configure the CDN to pay attention to cookies or whatever headers are used for Authentication by your platform then you might be able to cache things like /post/*… I couldn’t.

The things I’ve chosen to cache by URI Path above are ones that I know don’t vary by HTTP header or by authentication.

Although we can’t use URI Path a lot of the time, we can cache ActivityPub requests by detecting the Accept: allocation/ld+json header:

https://join.piefed.social/wp-content/uploads/2024/02/caching_activity2-1024x811.pngThis will cache all ActivityPub requests, regardless of URL. People browsing the same URLs as those used by ActivityPub will be unaffected as their requests won’t have the special HTTP header. I used a short TTL to avoid serving stale data when someone quickly edits a post straight after creating it.

There seems to be a deep vein of optimization here which I’ve only just started to dig into. These changes have made a huge difference already and for now my instance is under very little load so I’ll leave it there for now…

https://join.piefed.social/2024/02/20/how-much-difference-does-a-cdn-make-to-a-fediverse-instance/

slink, to random
@slink@fosstodon.org avatar

does cdns stand for CDNs or cDNS?

socenv, to Montreal

🪡 🧵 Would you like to learn a new skill while doing something good for the environment? The éco-quartier Côte-des-Neiges and the FabLab at the Bibliothèque Interculturelle are joining forces to give you the chance to learn how to use digital sewing machines! 🪡 🧵

See this post on our website for all of the details: https://socenv.ca/en/2024/02/03/digital-sewing-machine-workshops/ or send a message to lafeelutine@gmail.com !

nhoizey, to random French
@nhoizey@mamot.fr avatar
skwee357, to webdev
@skwee357@mstdn.social avatar

Anyone has recommendation for free, or very cheap CDN hosting which has programmatic access to upload assets?

Thanks 🙏

tdp_org, to devops
@tdp_org@mastodon.social avatar

Hands up if you caused a global outage today...
Just me?
Sorry!

I was making a change to our "outside the UK" CDN config today for www.bbc.co.uk & www.bbc.com & the change included 2 bugs which pre-testing didn't spot:

  • A regex typo which caused 404s on www.bbc.co.uk
  • An incorrect TLS cert on the CDN origin which caused 503s on www.bbc.com

These caused ~7 minutes of significant global outage.

I spent most of the afternoon writing tests to catch this for next time.

Cache status graph for www.bbc.com which shows a significant spike of "error" for ~7 minutes

nhoizey, to random French
@nhoizey@mamot.fr avatar
avoidthehack, to Discord

will switch to temporary file links to block delivery

Discord's is regularly abused by threat actors to host and drop malware such as information stealers. Discord has always struggled with mitigating this.

The hope is that temporary file links will make it that much harder for threat actors to host malware using Discord's CDN... but we will see. Supposed to roll-out by end of the year.

https://www.bleepingcomputer.com/news/security/discord-will-switch-to-temporary-file-links-to-block-malware-delivery/

stefano, to fediverse
@stefano@bsd.cafe avatar

Dear friends of and , pgbouncer is now up and running. You probably won't notice any changes as we didn't have performance issues related to the database, but this is a more suitable and efficient approach.
In recent days, I duplicated the jail containing Mastodon (the operational one) to support sidekiq and serve as a backup for the rest. For this reason, you shouldn't have noticed any disruptions because while I was making changes to the primary jail, BSD Cafe was still operational using the secondary one (on another host).

I'm seriously considering conducting an experiment and replicating this jail (along with the reverse proxy) on a different continent to speed up user access in that location. Currently, everything is in Europe (Helsinki), so I might replicate somewhere in the Americas.
I'm not sure if this would yield tangible benefits since the database, Redis, etc., would remain in Europe. Multimedia files are already on a CDN, so they are georeplicated.

Does anyone have any experience with this?

vwbusguy, to mastodon
@vwbusguy@mastodon.online avatar

It looks like the CDN files.mastodon.online for is currently broken and redirecting everything to https://(null)/ from files.mastodon.online.

If you're wondering why some pictures and media aren't loading right now, this is why.

dabertime, to random
@dabertime@mstdn.social avatar

When I first joined Twitter a lifetime ago, I only followed people in my own community.

Not sure when or how that changed, but along the way my idea of community changed and I'm glad and grateful that it did.
An interesting journey that I've appreciated immensely.

That said, with the demise of angrybirdsite, I'd like to find a few more friends again.
A little help would be appreciated. 😊

linkeddev, to random
@linkeddev@toot.garden avatar

Holy crap. Backblaze this is awesome!!

alcea, to python
@alcea@pb.todon.de avatar

@T0xF03AE @koyu

Lil q:

is it.. possible create offline package backups of stuff ?

i know files ( to ) exist,

but usually, apt-get without internet is kinda :blobcatgooglytrash: ..

so.. is there a way to keep things "" ?

(I don't trust package managment to have everything online always. . , you name it)

Imagine wanting to want to quickly a , but ohwait:

🙀

  • ConfusedCea
schizanon, to fediverse
@schizanon@mas.to avatar

is due out tomorrow and I'm super excited! sounds perfect for !

leveller_ottawa, to Ottawa
@leveller_ottawa@mastodon.online avatar

Social media and search engine companies have been threatening to remove or deprioritize actual news behind sponsored content and ads.

We here at The Leveller made a list of and international news sources to follow directly. In case you missed our February 2023 issue: https://leveller.ca/the-levellers-media-recommendations

viktor, to opensource
@viktor@me.dm avatar

If you need a privacy-friendly Google Fonts alternative, check out Bunny Fonts:

https://fonts.bunny.net/

KathyReid, to mastodon
@KathyReid@aus.social avatar

As folks might know, I the instance, which is a closed (must be approved) instance only for university and research group accounts in Australia / Oceania - because they're typically brand accounts and don't have a natural home in AU.

Yesterday I upgraded the storage for this Mastodon instance, and placed it on a .

If you're interested in this sort of thing, you can see the change plan here - because documentation is both helpful in the moment, and a good reference for others.

https://bit.ly/fediverseau-410-413-cdn-upgrade-plan

konstantin, to random

All I want is a CDN that's also private in a way that I don't need to include any US entities on the list of sub processors. I guess bunny.net is not on the list 🔓

#bunny.net

puresick, to random

Sick easy to use, europe-based and GDPR compliant static hoster with a clear pricing structure:

https://www.statichost.eu/

#hosting #cdn #static #gdpr #dsgvo #europe #sweden

kobayashi90, to random

Searching for an reverse proxy provider that would ignore my plex traffic and personal homepage. Cloudflare works but is snooping around too much.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • GTA5RPClips
  • mdbf
  • Youngstown
  • tacticalgear
  • slotface
  • rosin
  • kavyap
  • ethstaker
  • everett
  • khanakhh
  • JUstTest
  • DreamBathrooms
  • InstantRegret
  • cubers
  • normalnudes
  • Leos
  • ngwrru68w68
  • cisconetworking
  • modclub
  • Durango
  • provamag3
  • anitta
  • tester
  • lostlight
  • All magazines