use servlet to generate image for large amount of request

Discussion in 'Java' started by autogoor@yahoo.com, Jul 7, 2005.

  1. Guest

    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,
    , Jul 7, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. circuit_breaker
    Replies:
    2
    Views:
    1,995
    Jack Jia
    Apr 4, 2004
  2. James
    Replies:
    29
    Views:
    2,153
    Dale King
    Apr 15, 2006
  3. Replies:
    3
    Views:
    29,098
    Stuart Wood
    Jun 6, 2006
  4. computer_guy
    Replies:
    4
    Views:
    470
    computer_guy
    Jul 21, 2007
  5. Ice Man

    Request of large amount of data

    Ice Man, Jun 9, 2004, in forum: ASP General
    Replies:
    1
    Views:
    92
    Ice Man
    Jun 9, 2004
Loading...

Share This Page