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. Advertisements

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:
    2,416
    Jack Jia
    Apr 4, 2004
  2. James
    Replies:
    29
    Views:
    2,852
    Dale King
    Apr 15, 2006
  3. Thomas Pototschnig

    Need a large amount of memory!

    Thomas Pototschnig, Apr 30, 2005, in forum: Java
    Replies:
    1
    Views:
    465
    Harald
    Apr 30, 2005
  4. Replies:
    2
    Views:
    707
  5. Replies:
    3
    Views:
    30,814
    Stuart Wood
    Jun 6, 2006
  6. dreamvigile

    how to read in large amount of data in C?

    dreamvigile, Jul 18, 2003, in forum: C Programming
    Replies:
    0
    Views:
    445
    dreamvigile
    Jul 18, 2003
  7. computer_guy
    Replies:
    4
    Views:
    589
    computer_guy
    Jul 21, 2007
  8. Ice Man

    Request of large amount of data

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