mattiem,
@mattiem@mastodon.social avatar

The CAP theorem comes up a lot in backend development. But I think many iOS developers that do any sync/CloudKit work would benefit tremendously understanding it.

It is possible you have a mental model of what “sync” is that has been proven impossible to build.

https://en.m.wikipedia.org/wiki/CAP_theorem

jsq,
@jsq@mastodon.social avatar

@mattiem i only do async/CloudKit now thanks

mattiem,
@mattiem@mastodon.social avatar

@jsq Easy mode

ctietze,
@ctietze@mastodon.social avatar

@mattiem have you recently encountered this?

I wonder what kind of sync iOS devs even build to deal with this. Must be manual, otherwise the cloud sync API will deal with retries on dropped connections, for example?

mattiem,
@mattiem@mastodon.social avatar

@ctietze I have never done sync before. I just see a lot of people talking about it recently.

I have heard of people using CRDTs to help here, and I’m in favor of that as a concept. But embracing eventual consistency is something that can be extremely hard to do.

ctietze,
@ctietze@mastodon.social avatar

@mattiem I can imagine! CRDTs sound amazing. My stuff is just too simple, I never get to play with these :(

danilo,
@danilo@hachyderm.io avatar

@mattiem o shit

I never wanted to touch it because it was gnarly on a level I didn't have an appetite for, this helps, thank you!

mattiem,
@mattiem@mastodon.social avatar

@danilo Haha does it? I always worry this will just stress people out.

danilo,
@danilo@hachyderm.io avatar

@mattiem I think far more stressful is “hey this is definitely fucking impossible for reasons only my intuition is able to tell me until I sink a bunch of time on it”

so I think everyone is going to come out ahead eventually here

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • cubers
  • Youngstown
  • ngwrru68w68
  • ethstaker
  • slotface
  • PowerRangers
  • hgfsjryuu7
  • khanakhh
  • kavyap
  • tsrsr
  • InstantRegret
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • Leos
  • rosin
  • tacticalgear
  • thenastyranch
  • Durango
  • osvaldo12
  • vwfavf
  • modclub
  • everett
  • GTA5RPClips
  • cisconetworking
  • normalnudes
  • tester
  • anitta
  • All magazines