Asynchronous task in ASP.NET

后端 未结 4 484
野的像风
野的像风 2021-01-16 06:51

I’m trying to force an ASP.NET site to pre-load a large number of objects into the cache on start-up. Each objects takes 2-10 seconds to generate, which means loading 1200+

4条回答
  •  鱼传尺愫
    2021-01-16 07:43

    You need a persistent view model store!

    Perform these searches and store the results in a document database, for example. Have a look at RavenDb. With that, you can serialize any object into the database and get sub second response times querying the data.

    You can then use anything to perform the work and use the ASP.NET Web app for presentation.

提交回复
热议问题