Oops, posted too quickly. Here it is: https://simplyexplained.com/blog/how-i-built-an-nfc-movie-library-for-my-kids/
Woops, yes! Link to the blog post with how-to: https://simplyexplained.com/blog/how-i-built-an-nfc-movie-library-for-my-kids/ Updated now.
About a week
Thank you! Finally managed to quit vim!
I looked at how many WebSocket connections a single server could keep open, and it seems quite high: https://unetworkingab.medium.com/millions-of-active-websockets-with-node-js-7dc575746a01
That being said, I do agree with you that it's inefficient to open a connection to every other instance.
About your proposals:
- I don't think your first solution is feasible. How would an instance know which other 10 instances to notify?
- I do like your idea of batching operations together! Would definitely cut back on the amount of HTTP calls and signature validations. Perhaps this can even be extended further: right now every user interaction is signed before its been sent to other instances. Would be interesting if the instance itself also has a public/private key and that it can sign a whole batch at once (rather then signing every single user interaction).
These posts are really useful to get a grasp of ActivityPub (if you have a programming background): https://rknight.me/building-an-activitypub-server/ https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/
And of course the official spec (although its less useful): https://www.w3.org/TR/activitypub/
That's a good point. I opened an issue on Github to propose such a limit: https://github.com/LemmyNet/lemmy/issues/3452
And a followup question: wouldn’t it be more efficient for big instances to use WebSockets to federate? Making a HTTP request for every action your users take seems unnecessarily wasteful.
Amazing blog post! Been reading the ActivityPub spec and found it rather lacking. It’s only when you add WebFinger and signed messages that things start to make sense.
Well, it takes 9 months to make a baby. So technically October to January are the most "active" months ;)
Hadn't considered using NFC tags to have my kids control other things in the house. Interesting idea!