I am trying to implement caching in my application. We are using Oracle database, asp.net web api to serve data to ui. Api calls take more time, so we are thinking of implementing caching. Our code is deployed on 2 servers with load balancers. How caching should be implemented. What i am planning to implement is, There should be a service API on any server, this api will store all data in memory. Ui will call our existing API, hit can go to any node, this api then will get data from new api(cache) and serve it to ui. Is this architecture correct for distruted caching. Can any one share their experience or guidance to implementation?
Distributed caching with nhibernate orm
225 Views Asked by user3176053 At
1
There are 1 best solutions below
Related Questions in ASP.NET-WEB-API
- Log to Dynatrace using Serilog and web.config .NET Framework API
- How to create a REST API with .NET Framework?
- ASP.NET Core Background task with service container
- App gateway closing connection after 100 requests
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- The 'GetUriByAction' method in the LinkGenerator class in Asp.Net Core is not defined in the Repository layer of the project
- Entity Tracking Conflict when Authenticating Users in ASP.NET Core API
- Class validation on response body in .NET WebApi
- My ASP.NET server does not work and I am wondering what's missing, when I open Swagger, I get error 500
- How to split Serilog log file into multiple files?
- Response payload is not odata payload
- How can I upload picture
- Web Forms aspx - PostAsync Web API
- do you know any free reporting services like devexpress or boldreports?
- WebAPI don't deserialize JSON but same payload works in Swagger
Related Questions in OPTIMIZATION
- Optimize LCP ReactJs
- Efficiently processing many small elements of a collection concurrently in Java
- How to convert the size of the HTML document from 68 Kb to the average of 33 Kb?
- Optimizing Memory-Bound Loop with Indirect Prefetching
- Google or-tools soft constraint issue
- How to find function G(x), and make for every x, G(x) always returns fixed point for another function F(G(x))
- Trying to sort a set of words with the information theory to solve Worlde in Python but my program is way to slow
- Do conditional checks cause bottlenecks in Javascript?
- Hourly and annual optimization problem over matrix
- Sending asynchronous requests without a pre-defined task list
- DBT - Using SELECT * in the staging layer
- Using `static` on a AVX2 counter function increases performance ~10x in MT environment without any change in Compiler optimizations
- Is this a GCC optimiser bug or a feature?
- Performance difference between two JavaScript code snippets for comparing arrays of strings
- Distribute a list of positive numbers into a desired number of sets, aiming to have sums as close as possible between them
Related Questions in FLUENT-NHIBERNATE
- Exception when using Sqlite with Nhibernate for integration tests
- NHibernate: Entities Mapped Incorrectly Despite Correct Configuration
- How to get all objects with parameters of other tables in NHibernate?
- Writing NetTopologysuite Point geometry to PostgreSQL with fluent nhibernate fails due to custom type mapping
- How to reference both entities when having only one column in one table in Fluent Nhibernate?
- Installing FluentNHibernate creates conflicts between different versions of "NHibernate"
- How to join multible Tables using linq with fluent nHibernate (left join)?
- Select items from a group by where count is larger than 1
- NHibernate OrchardCMS and Long Id: object references an unsaved transient instance
- HasMany mapping on child tables on loose foreign key with different data type
- Fluent nhibernate BuildSessionFactory with Microsoft.Data.Sqlite is not Working
- Map a HasMany relationship without any key column whatsoever - Where() only
- Select data from a sub-select
- How to use fluent nHibernate from an ArcGIS Pro 3.1 AddIn with C#?
- Fluent Nhibernate HasMany Duplicate Insert Problem
Related Questions in SECOND-LEVEL-CACHE
- Is there a way to fetch Associated Entity from second level Cache instead of hitting the DB in Hibernate?
- What is the difference between putting @Cache in Entities and @QueryHints in Queries?
- Unable to implement Second Level Cache in Hibernate
- Bad performance with hibernate with second level cache when query cache enabled
- How to 2nd level cache a Lazy Loaded Collection in Hibernate?
- Multi-tenant-Architecture and Second level caching issues (spring, hibernate 5.4.21.Final , multi-tenancy, caching ehcache )
- Hazelcast + Hibernate query slowdown when using second level cache
- Is there a recommended maximum number of Hibernate 2nd level cache regions?
- Why does the StackExchangeRedis NHibernate Second Level Cache require a locking mechanism?
- Hibernate LOG: A soft-locked cache entry was expired by the underlying cache
- How can I ensure that 2nd level cache is enabled in spring boot app?
- Doctrine's Second Level Cache doesn't show new items
- Confusion about Spring Caching abstraction and Hibernate 2nd level cache
- Is it a good approach to use Hibernate second level cache providers in production environment?
- Hibernate second level entity cache invalidation in multitenant environment with Infinispan
Related Questions in NCACHE
- Alachisoft Ncache Running Slow when ClientIs is Stopped
- How does caching work in Entity Framework?
- How to implement Distributed Caching in .net core webapi?
- NCache - Failed to start my cache . ErrorL Specified cache is not registered
- Is NCache compatible with .NET Core 3.0?
- Alachisoft Ncache SqlCacheDependency adding dependency through stored procedure
- Apply NCache to existing project (with CacheDependency)
- Command line tools are missing after install of ncache.opensource.clr40.x64.msi (version 4.9 SP1)
- Using EF core ncache provider, automatically cache and sync all tables in database
- Setting Up Ncache (Distributed?/Shared)
- Unable to cast object of type 'System.Int32' to type 'System.Collections.ArrayList'."
- SQLDependency cannot be registered SqlNotificationEventArgs.Info is returned with Invalid status
- Distributed caching with nhibernate orm
- Ncache shared by multiple processors in the same server
- Connecting to local nCache
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You might want to check NCache. Being a distributed caching solution, it provides first class support for sharing cache data between multiple clients due to the ache process running autonomously outside the address of any one application address space.
For your case, every web server in your load-balanced web farm will have be the client of NCache and have direct access to the cache servers. All the web servers,being clients to a central caching solution, will see the same cache data through simple-to-use NCache APIs. Any modification through insert, update or delete cache operations will be immediately observable to all the web servers.
The intelligence driving NCache allows for a seamless behind-the-scenes handling of all the tasks of storing and distributing the cache data among multiple cache server nodes on which the cache instance is distributed.
Furthermore, all the caching operations are completely independent of the framework used for database content retrieval and can be applied equally well with NHibernate, EF, EF Core and, of course, ADO.NET.
You can find more information about how to integrate NCache into your web farm environment and much more by using the following link:
http://www.alachisoft.com/resources/docs/ncache/admin-guide/ncache-architecture.html