Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28698 > unrolled thread

Cloud Questions

Started byRoedy Green <see_website@mindprod.com.invalid>
First post2014-06-09 15:26 -0700
Last post2014-06-10 21:40 -0400
Articles 9 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-09 15:26 -0700
    Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-09 18:39 -0400
      Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-09 18:58 -0400
        Re: Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-09 23:28 -0700
        Re: Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-10 01:37 -0700
      Re: Cloud Questions Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-10 22:26 +0000
        Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-10 19:16 -0400
    Re: Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-09 23:06 -0700
      Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-10 21:40 -0400

#28698 — Cloud Questions

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-09 15:26 -0700
SubjectCloud Questions
Message-ID<76ccp9t1nvcpka81d69uldfatphb9ofp0t@4ax.com>
Why website is currently static.  I make all changes on my desktop and
upload them hourly.  I wondering what would happen if I hosted instead
on a cloud.

I can see it would work as-is easily on a cloud. Two clouds could
serve the same content to the closest customers without any change at
all. My questions are:

1. how to do you update the files of a cloud? Can I get rid of that
accursed FTP?
2. do you have to update each cloud separately, or is that considered
an automatic cloud function?

Now lets say I migrate the random functions (e.g random PSAs, random
ads, random quotations) to the cloud.  Again no problem.

Now lets say I had some SQL databases that get queried to satisfy
requests.  I guess then I have to upload the entire database from time
to time and propagate it?  or do I? Is it considered an ordinary
function to send some sort of delta?

Now lets say I want to keep track of hit counts.  I want to
consolidate the page hits from each cloud.  I could download each
cloud's database consolidated and upload to each cloud.  I could have
only one cloud maintain the database and other clouds access it
remotely with jdbc or something more secure. Is there some special
distributed cloud database that lazily keeps all copies in sync?

I have a lot of static content on my website. Turning every page to a
JSP servlet would make for one huge server app. What sort of
techniques are used to separate static and computed parts to glue
pages together?

I take it the locations of clouds are not your concern. They could
wander from server farm to server farm based to where the load is
coming from and there there is spare compute power. Right?

Anything else I should consider in such a move?
-- 
Roedy Green Canadian Mind Products http://mindprod.com
In former times, people who craved absolute power became gangsters.
Today, they become computer programmers.

[toc] | [next] | [standalone]


#28699

FromArne Vajhøj <arne@vajhoej.dk>
Date2014-06-09 18:39 -0400
Message-ID<53963794$0$298$14726298@news.sunsite.dk>
In reply to#28698
On 6/9/2014 6:26 PM, Roedy Green wrote:
> Why website is currently static.  I make all changes on my desktop and
> upload them hourly.  I wondering what would happen if I hosted instead
> on a cloud.
>
> I can see it would work as-is easily on a cloud. Two clouds could
> serve the same content to the closest customers without any change at
> all. My questions are:
>
> 1. how to do you update the files of a cloud? Can I get rid of that
> accursed FTP?
> 2. do you have to update each cloud separately, or is that considered
> an automatic cloud function?
>
> Now lets say I migrate the random functions (e.g random PSAs, random
> ads, random quotations) to the cloud.  Again no problem.
>
> Now lets say I had some SQL databases that get queried to satisfy
> requests.  I guess then I have to upload the entire database from time
> to time and propagate it?  or do I? Is it considered an ordinary
> function to send some sort of delta?
>
> Now lets say I want to keep track of hit counts.  I want to
> consolidate the page hits from each cloud.  I could download each
> cloud's database consolidated and upload to each cloud.  I could have
> only one cloud maintain the database and other clouds access it
> remotely with jdbc or something more secure. Is there some special
> distributed cloud database that lazily keeps all copies in sync?

IaaS : depends on your application
PaaS : depends on your application and the clouds capabilities
SaaS : depends on the clouds capabilities

> I have a lot of static content on my website. Turning every page to a
> JSP servlet would make for one huge server app. What sort of
> techniques are used to separate static and computed parts to glue
> pages together?

A) Just let the servlet container serve both dynamic and static
    content (possibly with different paths)
B) Use a servlet container for the dynamic content and a plain web
    server for static content

> I take it the locations of clouds are not your concern. They could
> wander from server farm to server farm based to where the load is
> coming from and there there is spare compute power. Right?

More or less. You will typical be able to specify region.

> Anything else I should consider in such a move?

There are probably no point in moving your pages to a cloud
instead of the current web hosting solution.

Arne

[toc] | [prev] | [next] | [standalone]


#28701

FromArne Vajhøj <arne@vajhoej.dk>
Date2014-06-09 18:58 -0400
Message-ID<53963c1c$0$294$14726298@news.sunsite.dk>
In reply to#28699
On 6/9/2014 6:39 PM, Arne Vajhøj wrote:
> On 6/9/2014 6:26 PM, Roedy Green wrote:
>> Why website is currently static.  I make all changes on my desktop and
>> upload them hourly.  I wondering what would happen if I hosted instead
>> on a cloud.
>>
>> I can see it would work as-is easily on a cloud. Two clouds could
>> serve the same content to the closest customers without any change at
>> all. My questions are:
>>
>> 1. how to do you update the files of a cloud? Can I get rid of that
>> accursed FTP?
>> 2. do you have to update each cloud separately, or is that considered
>> an automatic cloud function?
>>
>> Now lets say I migrate the random functions (e.g random PSAs, random
>> ads, random quotations) to the cloud.  Again no problem.
>>
>> Now lets say I had some SQL databases that get queried to satisfy
>> requests.  I guess then I have to upload the entire database from time
>> to time and propagate it?  or do I? Is it considered an ordinary
>> function to send some sort of delta?
>>
>> Now lets say I want to keep track of hit counts.  I want to
>> consolidate the page hits from each cloud.  I could download each
>> cloud's database consolidated and upload to each cloud.  I could have
>> only one cloud maintain the database and other clouds access it
>> remotely with jdbc or something more secure. Is there some special
>> distributed cloud database that lazily keeps all copies in sync?
>
> IaaS : depends on your application
> PaaS : depends on your application and the clouds capabilities
> SaaS : depends on the clouds capabilities
>
>> I have a lot of static content on my website. Turning every page to a
>> JSP servlet would make for one huge server app. What sort of
>> techniques are used to separate static and computed parts to glue
>> pages together?
>
> A) Just let the servlet container serve both dynamic and static
>     content (possibly with different paths)
> B) Use a servlet container for the dynamic content and a plain web
>     server for static content
>
>> I take it the locations of clouds are not your concern. They could
>> wander from server farm to server farm based to where the load is
>> coming from and there there is spare compute power. Right?
>
> More or less. You will typical be able to specify region.
>
>> Anything else I should consider in such a move?
>
> There are probably no point in moving your pages to a cloud
> instead of the current web hosting solution.

Even if your traffic suddenly grew by a factor 1000, then you should
probably look for a CDN not for IaaS/PaaS/IaaS. The CDN provider
may then use IaaS/PaaS/IaaS.

Arne

[toc] | [prev] | [next] | [standalone]


#28703

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-09 23:28 -0700
Message-ID<tb9dp9l4fr7u57g5gkvkjv0akm76k4ea10@4ax.com>
In reply to#28701
On Mon, 09 Jun 2014 18:58:36 -0400, Arne Vajhøj <arne@vajhoej.dk>
wrote, quoted or indirectly quoted someone who said :

>CDN not for IaaS/PaaS/IaaS.

CDN = Content Delivery Network
-- 
Roedy Green Canadian Mind Products http://mindprod.com
In former times, people who craved absolute power became gangsters.
Today, they become computer programmers.

[toc] | [prev] | [next] | [standalone]


#28704

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-10 01:37 -0700
Message-ID<orgdp9t4qmhl0k0bte9t9kl8b1fu2m8a9e@4ax.com>
In reply to#28701
On Mon, 09 Jun 2014 18:58:36 -0400, Arne Vajhøj <arne@vajhoej.dk>
wrote, quoted or indirectly quoted someone who said :

>Even if your traffic suddenly grew by a factor 1000, then you should
>probably look for a CDN not for IaaS/PaaS/IaaS.

I have done some digging into the CDN, CloudFlare.

I have posted what I have discovered:

http://mindprod.com/jgloss/cloudflare.html
-- 
Roedy Green Canadian Mind Products http://mindprod.com
In former times, people who craved absolute power became gangsters.
Today, they become computer programmers.

[toc] | [prev] | [next] | [standalone]


#28706

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2014-06-10 22:26 +0000
Message-ID<ln80m2$6i3$1@dont-email.me>
In reply to#28699
On Mon, 09 Jun 2014 18:39:16 -0400, Arne Vajhøj wrote:

> There are probably no point in moving your pages to a cloud instead of
> the current web hosting solution.
>
Agreed.

If your webhost supported rsync access, which is admittedly unlikely, 
using it to synchronise the hosted set of web pages with your local set 
would be the perfect solution as its fast and minimised to data volume 
being transferred.

I'd say you could do as well by using either scp or sftp in a script-
driven solution:

- use sftp to pull back a list of published pages and the dates and times
  of publication
- the script uses that list to generate sftp 'put' commands for all
  unpublished and altered pages and 'rm' for all published pages that
  you've deleted from the local collection.
- feed the file of put & rm commands to the sftp utility to do the page
  transfers and deletions.

...where the 'script' could be written Perl, python, awk or even be a 
Java application.

This approach can be fairly easily extended to maintain the published 
directory structure by using sftp's 'mkdir' and 'rmdir' commands.

Of course, you do more or less exactly the same with a command-line ftp 
client in place of sftp.

I hope this gives you some useful ideas.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#28707

FromArne Vajhøj <arne@vajhoej.dk>
Date2014-06-10 19:16 -0400
Message-ID<539791cc$0$299$14726298@news.sunsite.dk>
In reply to#28706
On 6/10/2014 6:26 PM, Martin Gregorie wrote:
> I'd say you could do as well by using either scp or sftp in a script-
> driven solution:
>
> - use sftp to pull back a list of published pages and the dates and times
>    of publication
> - the script uses that list to generate sftp 'put' commands for all
>    unpublished and altered pages and 'rm' for all published pages that
>    you've deleted from the local collection.
> - feed the file of put & rm commands to the sftp utility to do the page
>    transfers and deletions.
>
> ...where the 'script' could be written Perl, python, awk or even be a
> Java application.

Java and Apache Common Net is not a bad solution for some
advanced FTP'ing, if one is fluent in Java.

Arne

[toc] | [prev] | [next] | [standalone]


#28702

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-09 23:06 -0700
Message-ID<sk7dp9tdp6lj5jpnb7sbm2kkcrag1mife3@4ax.com>
In reply to#28698
On Mon, 09 Jun 2014 15:26:20 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>
>Anything else I should consider in such a move?

I have been digging around.  Interesting things I learned I have
posted at:

http://mindprod.com/jgloss/cloudstorage.html
http://mindprod.com/jgloss/ec2.html
http://mindprod.com/jgloss/openstack.html

The main thing I discovered is distributed databases now exist.
I have just scratched the surface.  This is a far more interesting new
area that I imagined it would be.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
In former times, people who craved absolute power became gangsters.
Today, they become computer programmers.

[toc] | [prev] | [next] | [standalone]


#28708

FromArne Vajhøj <arne@vajhoej.dk>
Date2014-06-10 21:40 -0400
Message-ID<5397b374$0$300$14726298@news.sunsite.dk>
In reply to#28702
On 6/10/2014 2:06 AM, Roedy Green wrote:
> The main thing I discovered is distributed databases now exist.
> I have just scratched the surface.  This is a far more interesting new
> area that I imagined it would be.

If you need to process PB of data, then that is necesarry.

Arne

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web