monday

Written by

in

I am trying to setup clustering for JPA and it’s not the easiest thing to do. Really not. Documentation is scamp. It’s spreaded all over the place. There are no true full examples. It’s tough.  I have a few options. On the positive, I learned a lot today. Let’s review.

Ben wants to use memcached instance and have the servers connect to it. This should technically work, but the servers will be connecting to the server via http. That will slow things down a bit, I think. It probably will work, though and it might be the way to go.

Another solution, and this looks like a competitor to memcached is ehcache server. This works pretty much the same as memcached, I think. I think it’s better suited to be used in a Java environment. It’s better documented.

We can also use built in solution in JPA. I think OpenJPA and Eclipselink actually provide extensions/solutions for this. So this will be a matter of configuring it correctly. But that might not be easy. Another solution would be to extend JPA and add ehcache as the cache solution. That might work.

In any case, I think I have my work cut out for me. Very important stuff though. But it’s not really coding, so it takes time. But I will make sure it’s done correctly. I have to.

My son Victor is becoming a happy baby. He smiles a lot. I love it when he does. He is so funny. I think he’s a calm baby. He doesn’t cry a lot. But he does like to be held. With the help of our grammy, I think he might get spoiled. But that’s not really my problem! 🙂