<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 04.04.2013 um 17:28 schrieb Stefan Krecher &lt;<a href="mailto:stefan.krecher@googlemail.com">stefan.krecher@googlemail.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">i have two web-apps based on seaside. Both of them are currently</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">running on an amazon ec2 micro-instance (windows).</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">There are two pharo-instances running, listening on different ports</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">(non-reduced images, gui is running). Both images are behind apache</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">2.2 (using virtual hosts and mod_proxy).</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">Persistence is image-based, using serialization as seen here:</span><br style="font-family:arial,sans-serif;font-size:13px"><a href="http://onsmalltalk.com/simple-image-based-persistence-in-squeak" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://onsmalltalk.com/simple-image-based-persistence-in-squeak</a><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">The number of users is very limited at the time und won't exceed 20 in</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">the next months. The number of domain-objects is very limited too.</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">Is pharo (currently 1.4) the right-choice?</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Why/ when should i switch to Linux as server?</span><br style="font-family:arial,sans-serif;font-size:13px"></div></blockquote><div><br></div>When you feel comfortable doing it. In my(!) opinion Linux is much better suited for building a reliable server than windows is. But then I don't have a big knowledge about windows. If you are using windows and you know how to deal problems with it and Linux is something new then it might not be a good idea to switch. Working in smalltalk mostly means to abstract the underlying OS and work in the smalltalk environment. That means that the operating system isn't important as long as it runs reliable.</div><div><br><blockquote type="cite"><div dir="ltr">
<span style="font-family:arial,sans-serif;font-size:13px">What would be a good argument to migrate to GLASS?</span><br style="font-family:arial,sans-serif;font-size:13px"></div></blockquote><br></div><div>As others noted you need to specify your requirements first. You have limited users and a small domain model. How about the request rate? How many read and write requests do you have? Usually the number of concurrent requests is really important. But having a small user base makes that point probably less important.&nbsp;</div><div>So, solving concurrent requests issues would be a good reason for gemstone. But I doubt this is an actual problem to you.&nbsp;</div><div>Next is memory. The persistence you use at the moment is memory-bound. That means your model can only be as big as the memory your image has allocated. If your model grows over this you have to change to another persistence mechanism. This would be a very good reason for gemstone. Gemstones heap is not memory limited. Your available space is the size of your memory plus the size of your available disk space. With gemstone your model can grow easily into tens of GBs.</div><div>Finally the best reason for gemstone would be if you need complex atomic operations or let us call them transactions. That is something that is really unique to gemstone if it comes to persistence. At the moment I don't know any other persistence solution that comes close. Well, yes, SQL databases tend to have transactions as well but you can't do OO stuff in a relational database so they don't count. I don't know of a modern database solution that features transaction. The fashion here is to make about a new buzz word like "eventually consistent" and leave the problem to you.</div><div>&nbsp;</div>So if none of the problems above seems to be one of yours gemstone is not (yet) the best choice for you. I would examine the model once more and look for partition borders. That means determine regions in your model that are self-contained. These regions can be swapped out of memory if not being used. You could use Fuel to swap out a such a sub object graph to disc and read it back when you need it. This depends on the rate of write requests to your model. If the rate isn't very high Fuel might work because it is itself quite fast. This would extend the memory case in some way.<div><br></div><div>…there is a lot to write about solving problems if the problem isn't clear. So you probably stay with your current solution and solve your business problems until you are starting the face real issues. Then(!) you know the kind of problem you have because you have it.</div><div><br></div><div>hope this helps,</div><div><br></div><div>Norbert<br><div><br></div></div></body></html>