TAILIEUCHUNG - Expert one-on-one J2EE Design and Development phần 10

Chúng ta có thể đối phó với sự phức tạp thực hiện tăng cần thiết để hỗ trợ bộ nhớ đệm không? Điều này sẽ được giảm nhẹ nếu chúng ta sử dụng một, thực hiện bộ nhớ đệm, chung chung, nhưng chúng ta phải nhận thức được rằng đọc-ghi bộ nhớ đệm giới thiệu những vấn đề của luồng. | Performance Testing and Tuning an Application o Can we cope with the increased implementation complexity required to support caching This will be mitigated if we use a good generic cache implementation but we must be aware that read-write caching introduces significant threading issues. o Is the volume of data we need to cache manageable Clearly if the data set we need to cache contains millions of entities and we can t predict which ones users will want a cache will just waste memory. Databases are very good at plucking small numbers of records from a large range and our cache isn t likely to do a better job. o Will our cache work in a cluster This usually isn t an issue for reference data it s not a problem if each server has its own copy of read-only data but maintaining integrity of cached read-write data across a cluster is hard. If replication between caches looks necessary it s pretty obvious that we shouldn t be implementing such infrastructure as part of our application but looking for support in our application server or a third-party product. o Can the cache reasonably satisfy the kind of queries clients will make against the data Otherwise we might find ourselves trying to reinvent a database. In some situations the need for querying might be satisfied more easily by an XML document than cached Java objects. o Are we sure that our application server cannot meet our caching requirements For example if we know that it offers an efficient entity bean cache caching data on the client may be unnecessary. One decisive issue here will be how far in terms of network distance the client is from the EJB tier. The Pareto Principle the 80 20 rule is applicable to caching. Most of the performance gain can often be achieved with a small proportion of the effort involved in tackling the more difficult caching issues. Data caching can radically improve the performance of J2EE applications. However caching can add much complexity and is a common cause of bugs. The .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.