maps.google.com uses AJAX to update their maps "on the fly" This allows you to display on the portion of the image that is required on the page. As you zoom in, out, of move around the map, they use a XML connection to update the map.

http://en.wikipedia.org/wiki/AJAX


Inactive hide details for Tony Smith <[EMAIL PROTECTED]>Tony Smith <[EMAIL PROTECTED]>


          Tony Smith <[EMAIL PROTECTED]>

          07/08/2005 11:32 AM

          Please respond to
          "Struts Users Mailing List" <user@struts.apache.org>

To

Tomcat Users List <tomcat-user@jakarta.apache.org>, user@struts.apache.org

cc


Subject

Re: generate image by servlet for large amount of requests

Any ideas?

--- Tony Smith <[EMAIL PROTECTED]> wrote:

> Let's think about maps.yahoo.com. I do not know how
> they handle
> millions of request and generate the map pictures
> quickly. If I use a
> servlet, in the post or get method I use:
>
>
>     BufferedImage mapImage =
> myTookKit.generateMap(String address);
>     response.setContentType("imageĀ­/png");
>     OutputStream os = response.getOutputStream();
>     ImageIO.write(buffer, "png", os);
>     os.close();
>
>
> Is servlet a good choice? If I use servlet, is the
> code above good
> enough to handle hundreds of request? Is the choice
> of
> BufferedImage a
> good one? What special technique I need to implement
> "myTookKit" to
> make it faster? I am thinking about JNI.
>
>
> Thanks,
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
>
http://mail.yahoo.com 
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to