• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOSession serialisation redux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOSession serialisation redux


  • Subject: Re: WOSession serialisation redux
  • From: Paul Hoadley <email@hidden>
  • Date: Wed, 20 May 2015 09:21:54 +0930

Hi Ramsey,

On 20 May 2015, at 1:53 am, Ramsey Gurley <email@hidden> wrote:

> On May 19, 2015, at 4:03 AM, Paul Hoadley <email@hidden> wrote:
>
>> I’ve had a look at Ramsey’s ERPersistentSessionStorage.framework, and my intention was to create something similar backed by memcached.  I got it working to the proof-of-concept level on a trivial app, but using native Java serialisation seems brittle.  (By which I mean it falls over pretty fast when you throw a serialisation-based approach into a substantial application.)
>
> I’m curious about the "falls over pretty fast" part. What sort of problems do you have?

Serialization failures.  (To be clear, I’m talking about testing with my own memcached-based approach, but it’s really only some very minor changes to your work to use memcached instead of the database as the back-end.)  Initially it was my own classes, which I could fix, but then I started hitting weirdness like this:

> Caused by: java.io.NotSerializableException: java.lang.reflect.Field


It’s not obvious to me where that’s coming from, or how to fix it.  I had also formed the impression (perhaps erroneously!) that you had found serialization issues deeper inside the WebObjects frameworks that were going to be difficult or impossible to fix.

> I had a few unresolved bugs that could have probably been fixed by rewriting EOEditingContext’s serialization routine, but I never bothered.

That sounds a lot more promising.  I was under the impression you had abandoned the idea because the problem was unsolvable.

> It became obvious to me that a) nobody was interested in fixing serialization in their legacy classes,

I’m interested!

> and b) everyone was too proud of their one-off direct action workarounds to this particular problem to look at a new solution that works for everything.

I am really interested in being able to decouple session persistence from the application server to allow for automated horizontal scaling of component action-based apps.

> Basically I wrote that framework to prove to myself that a component action/D2W app could be used as a “front end” app at scale and do a better job of it to boot. I succeeded in convincing myself that it was possible and left it there :-)


What would it take to get you back into this?  Let’s start with a show of hands: is anyone else interested in developing a robust solution to this problem?


--
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: WOSession serialisation redux
      • From: Paul Hoadley <email@hidden>
    • Re: WOSession serialisation redux
      • From: Ramsey Gurley <email@hidden>
    • Re: WOSession serialisation redux
      • From: Matthew Ness <email@hidden>
References: 
 >WOSession serialisation redux (From: Paul Hoadley <email@hidden>)
 >Re: WOSession serialisation redux (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Back with weird problems: PK generation keeps generating same PK... up to a moment.
  • Next by Date: Re: WOSession serialisation redux
  • Previous by thread: Re: WOSession serialisation redux
  • Next by thread: Re: WOSession serialisation redux
  • Index(es):
    • Date
    • Thread