Squeak + Seaside questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Squeak + Seaside questions

Alexandre Paes
Hi seasiders,

I've been developing on seaside but only as a hobby, i'm really having
fun programming for the web, which hadn't happened to me for a long time
now.

Right now i've been asked to work on some project and i feel really
tempted to develop this in seaside, but i still have some questions and
could use some help to decide if squeak + seaside is actually an option.
Some of my doubts are:

1) I believe squeak + seaside only serves one request at a time, is this
right? If so, how will an application that is to serve 1-10 users
simultaneously behave in terms of performance?

2) Is it possible to have the application seamlessly deployed together
with Apache 1.3.37? All the documents i've found rely on stuff that
apparently are only available on Apache 2.x. (If someone could provide
some tips i'd be thankful)

3) How is squeak + seaside in terms of scalability, is it possible to
add multiple applications running on the same VM and have them not
colliding with each other? (Continuations still make my head dizzy,
that's why i ask this)


I know some of these might be really easy/dumb questions, but these come
to mind as a newbie on seaside at this moment when i need to assure if
seaside is really an option for this project. Thanks in advance to
anyone for the patience and help.


Best regards,

Alexandre Paes
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Squeak + Seaside questions

Lukas Renggli
> 1) I believe squeak + seaside only serves one request at a time, is this
> right?

No, that's not true.

> If so, how will an application that is to serve 1-10 users
> simultaneously behave in terms of performance?

10 users should be easily handled by a single image.

> 2) Is it possible to have the application seamlessly deployed together
> with Apache 1.3.37? All the documents i've found rely on stuff that
> apparently are only available on Apache 2.x. (If someone could provide
> some tips i'd be thankful)

It is easier with Apache 2, but it works with any other web server as
well. What you have to do in this case is to set server-name and port
in the Seaside configuration, so that Seaside can properly generate
absolute URLs.

> 3) How is squeak + seaside in terms of scalability, is it possible to
> add multiple applications running on the same VM and have them not
> colliding with each other? (Continuations still make my head dizzy,
> that's why i ask this)

Yes, that's no problem.

Depending on the amount of concurrent users you might want to add more
VMs and do some load-balancing. This should not be necessary for 10
users though.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Squeak + Seaside questions

jgfoster
In reply to this post by Alexandre Paes
Alexandre,

See http://gemstonesoup.wordpress.com/ for Dale's blog on Seaside,
including scaling.

James

Alexandre Paes wrote:

> Hi seasiders,
>
> I've been developing on seaside but only as a hobby, i'm really having
> fun programming for the web, which hadn't happened to me for a long
> time now.
>
> Right now i've been asked to work on some project and i feel really
> tempted to develop this in seaside, but i still have some questions
> and could use some help to decide if squeak + seaside is actually an
> option. Some of my doubts are:
>
> 1) I believe squeak + seaside only serves one request at a time, is
> this right? If so, how will an application that is to serve 1-10 users
> simultaneously behave in terms of performance?
>
> 2) Is it possible to have the application seamlessly deployed together
> with Apache 1.3.37? All the documents i've found rely on stuff that
> apparently are only available on Apache 2.x. (If someone could provide
> some tips i'd be thankful)
>
> 3) How is squeak + seaside in terms of scalability, is it possible to
> add multiple applications running on the same VM and have them not
> colliding with each other? (Continuations still make my head dizzy,
> that's why i ask this)
>
>
> I know some of these might be really easy/dumb questions, but these
> come to mind as a newbie on seaside at this moment when i need to
> assure if seaside is really an option for this project. Thanks in
> advance to anyone for the patience and help.
>
>
> Best regards,
>
> Alexandre Paes
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Squeak + Seaside questions

Alexandre Paes
In reply to this post by Lukas Renggli
Hi Lukas,

thank you for your answers, fortunately it seems seaside might be an
alternative after all for this project. I did like you state on your
reply about setting up apache 1.3.37 to work with seaside and it's
working a lot better now, i still have some problems with the
FileLibrary things, but i guess i'll find some way to get around that
since there are some other posts on the mailing list about  that. What i
could use is some pointer about if it's possible to have seaside answer
only on localhost requests and not having the port open to the outside,
and let it be acessible only through apache.


Thanks everyone for the replies and help,

Alex


Em 10/08/07 18:23 Lukas Renggli escreveu:

>> 1) I believe squeak + seaside only serves one request at a time, is this
>> right?
>
> No, that's not true.
>
>> If so, how will an application that is to serve 1-10 users
>> simultaneously behave in terms of performance?
>
> 10 users should be easily handled by a single image.
>
>> 2) Is it possible to have the application seamlessly deployed together
>> with Apache 1.3.37? All the documents i've found rely on stuff that
>> apparently are only available on Apache 2.x. (If someone could provide
>> some tips i'd be thankful)
>
> It is easier with Apache 2, but it works with any other web server as
> well. What you have to do in this case is to set server-name and port
> in the Seaside configuration, so that Seaside can properly generate
> absolute URLs.
>
>> 3) How is squeak + seaside in terms of scalability, is it possible to
>> add multiple applications running on the same VM and have them not
>> colliding with each other? (Continuations still make my head dizzy,
>> that's why i ask this)
>
> Yes, that's no problem.
>
> Depending on the amount of concurrent users you might want to add more
> VMs and do some load-balancing. This should not be necessary for 10
> users though.
>
> Lukas
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Squeak + Seaside questions

Lukas Renggli
> thank you for your answers, fortunately it seems seaside might be an
> alternative after all for this project. I did like you state on your
> reply about setting up apache 1.3.37 to work with seaside and it's
> working a lot better now, i still have some problems with the
> FileLibrary things, but i guess i'll find some way to get around that
> since there are some other posts on the mailing list about  that. What i
> could use is some pointer about if it's possible to have seaside answer
> only on localhost requests and not having the port open to the outside,
> and let it be acessible only through apache.

Check out the mailing-list archive. Numerous people (including myself)
have posted working configurations. The only difference between Apache
1 and 2 is that Apache 1 does not support the PreserveProxyHost
directive, so you just skip it in your configuration and set
server-name and port
in the Seaside configuration, so that Seaside can properly generate
absolute URLs.

Lukas

>
>
> Thanks everyone for the replies and help,
>
> Alex
>
>
> Em 10/08/07 18:23 Lukas Renggli escreveu:
> >> 1) I believe squeak + seaside only serves one request at a time, is this
> >> right?
> >
> > No, that's not true.
> >
> >> If so, how will an application that is to serve 1-10 users
> >> simultaneously behave in terms of performance?
> >
> > 10 users should be easily handled by a single image.
> >
> >> 2) Is it possible to have the application seamlessly deployed together
> >> with Apache 1.3.37? All the documents i've found rely on stuff that
> >> apparently are only available on Apache 2.x. (If someone could provide
> >> some tips i'd be thankful)
> >
> > It is easier with Apache 2, but it works with any other web server as
> > well. What you have to do in this case is to set server-name and port
> > in the Seaside configuration, so that Seaside can properly generate
> > absolute URLs.
> >
> >> 3) How is squeak + seaside in terms of scalability, is it possible to
> >> add multiple applications running on the same VM and have them not
> >> colliding with each other? (Continuations still make my head dizzy,
> >> that's why i ask this)
> >
> > Yes, that's no problem.
> >
> > Depending on the amount of concurrent users you might want to add more
> > VMs and do some load-balancing. This should not be necessary for 10
> > users though.
> >
> > Lukas
> >
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Seaside and absolute URLs

tblanchard
I don't get why seaside insists on generating absolute urls at all.  
It seems to be bad practice.  Consider one apache doing load  
balancing to multiple application servers.  Seems more flexible to  
use relative urls (and, in fact, this is the first hack I make to any  
seaside - I kill off the absolute url code).

-Todd Blanchard

On Oct 9, 2007, at 8:55 AM, Lukas Renggli wrote:
> The only difference between Apache
> 1 and 2 is that Apache 1 does not support the PreserveProxyHost
> directive, so you just skip it in your configuration and set
> server-name and port
> in the Seaside configuration, so that Seaside can properly generate
> absolute URLs.
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

Lukas Renggli
> I don't get why seaside insists on generating absolute urls at all.
> It seems to be bad practice.

HTTP redirects are required to be absolute. Most browser can handle
relative redirects, but it is syntactically wrong.

> Consider one apache doing load
> balancing to multiple application servers.  Seems more flexible to
> use relative urls (and, in fact, this is the first hack I make to any
> seaside - I kill off the absolute url code).

That's not a issue, because Seaside can automatically detect the
currently used host-name using Apache 2.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

tblanchard
Yeah, I'm gonna keep hacking that out then.

First - there's no apache when I'm developing.
Second - not a lot of hosting providers have approved apache 2 (like  
mine).
Third - moving an image to a new box where the hostname has been set  
prevents access to the web tools to change the host name.

I don't mind if it is syntactically wrong if it works right.  I don't  
much like it if it is syntactically right but doesn't work at all.

On Oct 10, 2007, at 9:17 AM, Lukas Renggli wrote:

>> I don't get why seaside insists on generating absolute urls at all.
>> It seems to be bad practice.
>
> HTTP redirects are required to be absolute. Most browser can handle
> relative redirects, but it is syntactically wrong.
>
>> Consider one apache doing load
>> balancing to multiple application servers.  Seems more flexible to
>> use relative urls (and, in fact, this is the first hack I make to any
>> seaside - I kill off the absolute url code).
>
> That's not a issue, because Seaside can automatically detect the
> currently used host-name using Apache 2.
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

Lukas Renggli
> First - there's no apache when I'm developing.
> Second - not a lot of hosting providers have approved apache 2 (like
> mine).
> Third - moving an image to a new box where the hostname has been set
> prevents access to the web tools to change the host name.

Having different configurations for the different environments would
solve all these problems.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

tblanchard
Yes - that would be good.  Just wanted share the pain I experienced  
trying to move an image to a new machine - even the config app  
wouldn't work.  :-(

Very frustrating it was.

On Oct 10, 2007, at 12:33 PM, Lukas Renggli wrote:

>> First - there's no apache when I'm developing.
>> Second - not a lot of hosting providers have approved apache 2 (like
>> mine).
>> Third - moving an image to a new box where the hostname has been set
>> prevents access to the web tools to change the host name.
>
> Having different configurations for the different environments would
> solve all these problems.
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Seaside and absolute URLs

Boris Popov, DeepCove Labs (SNN)
I'm still trying to figure out what exactly the problem is? Seaside
isn't bound to any one hostname, at least not here; as a matter of fact
same app works from underneath multiple domains right now changing its
look to adapt as it goes along.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Todd Blanchard
> Sent: Wednesday, October 10, 2007 1:20 PM
> To: Seaside - general discussion
> Subject: Re: [Seaside] Seaside and absolute URLs
>
> Yes - that would be good.  Just wanted share the pain I experienced
> trying to move an image to a new machine - even the config app
> wouldn't work.  :-(
>
> Very frustrating it was.
>
> On Oct 10, 2007, at 12:33 PM, Lukas Renggli wrote:
>
> >> First - there's no apache when I'm developing.
> >> Second - not a lot of hosting providers have approved apache 2
(like
> >> mine).
> >> Third - moving an image to a new box where the hostname has been
set

> >> prevents access to the web tools to change the host name.
> >
> > Having different configurations for the different environments would
> > solve all these problems.
> >
> > Lukas
> >
> > --
> > Lukas Renggli
> > http://www.lukas-renggli.ch
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

Lukas Renggli
> I'm still trying to figure out what exactly the problem is? Seaside
> isn't bound to any one hostname, at least not here; as a matter of fact
> same app works from underneath multiple domains right now changing its
> look to adapt as it goes along.

I guess you are using Apache 2 or an other capable web server/load balancer?

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

Boris Popov, DeepCove Labs (SNN)
In reply to this post by tblanchard
Re: [Seaside] Seaside and absolute URLs

Yes, apache 2 and F5, I'm guessing it might be preserve host issue on apache 1?

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Wed Oct 10 22:51:34 2007
Subject: Re: [Seaside] Seaside and absolute URLs

> I'm still trying to figure out what exactly the problem is? Seaside
> isn't bound to any one hostname, at least not here; as a matter of fact
> same app works from underneath multiple domains right now changing its
> look to adapt as it goes along.

I guess you are using Apache 2 or an other capable web server/load balancer?

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

Lukas Renggli
> Yes, apache 2 and F5, I'm guessing it might be preserve host issue on apache
> 1?

Yes, Apache 1 removes the original host-information from the request
when proxying. This makes it impossible to guess the original
host-name automatically.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

Boris Popov, DeepCove Labs (SNN)
In reply to this post by tblanchard
Re: [Seaside] Seaside and absolute URLs

I would have thought all isps would have upgraded by now, no?

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Wed Oct 10 23:03:39 2007
Subject: Re: [Seaside] Seaside and absolute URLs

> Yes, apache 2 and F5, I'm guessing it might be preserve host issue on apache
> 1?

Yes, Apache 1 removes the original host-information from the request
when proxying. This makes it impossible to guess the original
host-name automatically.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and absolute URLs

tblanchard
No.
Lots have not.

On Oct 10, 2007, at 11:04 PM, Boris Popov wrote:

I would have thought all isps would have upgraded by now, no?

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Wed Oct 10 23:03:39 2007
Subject: Re: [Seaside] Seaside and absolute URLs

> Yes, apache 2 and F5, I'm guessing it might be preserve host issue on apache
> 1?

Yes, Apache 1 removes the original host-information from the request
when proxying. This makes it impossible to guess the original
host-name automatically.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside