Swift Death of Statelessness

(bexx.io)

21 points | by bexxmodd 8 hours ago

9 comments

  • PaulKeeble 1 hour ago
    One thing that is very apparent with AI is that the state has to sit very close to the processing to get good performance and even trips across relatively high bandwidth links like PCI-E are killer when the amount of data per action is high.

    AI is putting pressure on an architecture choice we made many decades ago to put memory over links away from the compute, that is now crumbling down and with it all the architectures that rely on it. Remains to be seen how many other applications will require a similar shift based on very large amounts of data per user action.

    This was something I had been thinking about for a while with parallel processing, mostly what we were doing was running more requests in parallel and precomputing things that took longer. I was starting to work on problems that required that parallelism within a request, going the opposite and harder direction that requires more fundamental change to the architecture. It runs into the same limitation of bandwidth to the data.

  • ahartmetz 5 hours ago
    The previous stuff wasn't actually stateless, state access was just restricted through slow (compared to a local file system) interfaces such as SQL or remote storage APIs. It's a heavy-handed, cumbersome way to enforce discipline, the kind that enables scaling while also requiring it because it kills performance.
    • anilakar 4 hours ago
      To me, avoiding statefulness has become synonymous for avoiding responsibility, not across software components but across whole organizations.

      Everyone wants to write stateless functions and outsource persistence to someone else. Suddenly when one remote microservice call goes wrong you're left in inconsistent state and cannot automatically roll back the successful changes you have done so far.

  • comrade1234 4 hours ago
    Using AI is still stateless. It's just that the history has to be uploaded each time.
    • ZiiS 3 hours ago
      You get huge discounts on cached tokens if you upload the same history a second time. This relies on them already having that history in a statefull cache.
  • zelphirkalt 5 hours ago
    Do we not have solutions yet, for sharing caches between machines? But maybe that is already too much latency for current AI use-cases and we want that cache to be on the same machine even.
  • ZiiS 3 hours ago
    I am not sure even the most ardent AI maximalist thinks all compute will move to being an LLM call? Caching can get you so far; but getting the AI to write a classical program for things called millions of times is staying around.
  • smartbit 4 hours ago
    The cache of LLMs fills a few orders faster than the experience of developer takes to grow with a new environment.
  • ReDress 5 hours ago
    [dead]
  • bexxmodd 8 hours ago
    [flagged]