Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Looking for ideas ................

Looking for ideas ................

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdatabasedata-structuresperformancetutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anewcomer
    wrote on last edited by
    #1

    I am looking for suggestions on how to do something described below: - a web service that will be called by a web application about 200,000 times in a 15-minutes interval. - Each call will generate a string of data that needed to be recorded to the central database. Someone suggested to me: - the data generated by each call should temporary be sitting in memory. - A timer should wake up periodically to push the data to a queue, before the memory is too full. - The queue will write the data to the central database at a daily scheduled time. I would like to get some idea of what technique / technology that I can use to implement those suggestion., and to make the web service efficient. I am new to .NET and MS technology. I hope that someone can just point me to some directions and will be very much appreicate. Thanks. A Newcomer

    P J A 3 Replies Last reply
    0
    • A anewcomer

      I am looking for suggestions on how to do something described below: - a web service that will be called by a web application about 200,000 times in a 15-minutes interval. - Each call will generate a string of data that needed to be recorded to the central database. Someone suggested to me: - the data generated by each call should temporary be sitting in memory. - A timer should wake up periodically to push the data to a queue, before the memory is too full. - The queue will write the data to the central database at a daily scheduled time. I would like to get some idea of what technique / technology that I can use to implement those suggestion., and to make the web service efficient. I am new to .NET and MS technology. I hope that someone can just point me to some directions and will be very much appreicate. Thanks. A Newcomer

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      200,000 times in 15 minute intervals? Are you sure you really need to use a webservice for that? That is 200,000 HTTP requests and responses. Plus all the SOAP packaging, serialisation of the data, deserialisation, authenticating... At the least I know one IIS box is not going to come anywhere near handling that. You could optimise the data factory to hell and back but it is the IIS and webservice part that will tank. Why does it have to be 200,000 transactions? Can you not send more data with fewer transactions? I just think that no amount of in-memory storage, "queuing of memory" etc. ideas will help. The database could handle the writes easily enough, but not IIS. Maybe you can explain what you are trying to do and we can come up with a better architecture and set of technologies for this :)

      Paul Watson
      Bluegrass
      Cape Town, South Africa

      Robert Edward Caldecott wrote: My father-in-law calls yer man bits "weasels"

      A 1 Reply Last reply
      0
      • P Paul Watson

        200,000 times in 15 minute intervals? Are you sure you really need to use a webservice for that? That is 200,000 HTTP requests and responses. Plus all the SOAP packaging, serialisation of the data, deserialisation, authenticating... At the least I know one IIS box is not going to come anywhere near handling that. You could optimise the data factory to hell and back but it is the IIS and webservice part that will tank. Why does it have to be 200,000 transactions? Can you not send more data with fewer transactions? I just think that no amount of in-memory storage, "queuing of memory" etc. ideas will help. The database could handle the writes easily enough, but not IIS. Maybe you can explain what you are trying to do and we can come up with a better architecture and set of technologies for this :)

        Paul Watson
        Bluegrass
        Cape Town, South Africa

        Robert Edward Caldecott wrote: My father-in-law calls yer man bits "weasels"

        A Offline
        A Offline
        anewcomer
        wrote on last edited by
        #3

        Actually 200,000/15 minutes is the total hits in the peak time of the day for a farm of 6-7 servers. We are a brokeage firm that offers on-line quotes to clients. We would like to log the usage. A Newcomer

        P 1 Reply Last reply
        0
        • A anewcomer

          Actually 200,000/15 minutes is the total hits in the peak time of the day for a farm of 6-7 servers. We are a brokeage firm that offers on-line quotes to clients. We would like to log the usage. A Newcomer

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          farm of 6-7 servers That is better. Also I misunderstood you originally, I thought you meant every 15 minutes you get 200,000 requests. Not 200,000 per 15 minutes :) We are a brokeage firm that offers on-line quotes to clients. Ok. Well if I think of anything I will post.

          Paul Watson
          Bluegrass
          Cape Town, South Africa

          Robert Edward Caldecott wrote: My father-in-law calls yer man bits "weasels"

          1 Reply Last reply
          0
          • A anewcomer

            I am looking for suggestions on how to do something described below: - a web service that will be called by a web application about 200,000 times in a 15-minutes interval. - Each call will generate a string of data that needed to be recorded to the central database. Someone suggested to me: - the data generated by each call should temporary be sitting in memory. - A timer should wake up periodically to push the data to a queue, before the memory is too full. - The queue will write the data to the central database at a daily scheduled time. I would like to get some idea of what technique / technology that I can use to implement those suggestion., and to make the web service efficient. I am new to .NET and MS technology. I hope that someone can just point me to some directions and will be very much appreicate. Thanks. A Newcomer

            J Offline
            J Offline
            John Kuhn
            wrote on last edited by
            #5

            What if you use a message queue through, say, MTS; the webservice creates a message on the queue, then forgets about it. You could create a service somewhere else that listens for messages on the queue and processes them accordingly.

            1 Reply Last reply
            0
            • A anewcomer

              I am looking for suggestions on how to do something described below: - a web service that will be called by a web application about 200,000 times in a 15-minutes interval. - Each call will generate a string of data that needed to be recorded to the central database. Someone suggested to me: - the data generated by each call should temporary be sitting in memory. - A timer should wake up periodically to push the data to a queue, before the memory is too full. - The queue will write the data to the central database at a daily scheduled time. I would like to get some idea of what technique / technology that I can use to implement those suggestion., and to make the web service efficient. I am new to .NET and MS technology. I hope that someone can just point me to some directions and will be very much appreicate. Thanks. A Newcomer

              A Offline
              A Offline
              Aravinthan 0
              wrote on last edited by
              #6

              I feel you can use the MSMQ of Microsoft.. to log into it.. (From the webservice)..Now write a bunch of message handlers..(exes /windows service) that keep pulling out messages from the queue and write into DB.. This might work.


              Visit me:
              http://www2.domaindlx.com/earavi/
              When you know something.. its meant to share with others :-) for otherwise that knowledge has no worth:-)
              mail me:
              aravinthan@rediffmail.com


              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups