Question
Which design pattern is most suitable for controlling
access to a resource by limiting the number of clients that can use it concurrently?Solution
The Proxy Pattern is a structural design pattern used to control access to resources by acting as an intermediary or placeholder. It can implement restrictions like access control, caching, or logging. In the context of concurrency, the proxy ensures that only a limited number of clients access a resource at a time. For example, a proxy server can manage a pool of database connections, granting access to clients based on availability. This pattern reduces resource contention and improves system scalability and security. By isolating the resource, the Proxy Pattern adds flexibility and control over its usage. Why Other Options Are Incorrect :
- Singleton Pattern : Ensures a single instance of a class but does not control concurrent access.
- Factory Pattern : Focuses on object creation, unrelated to access control.
- Decorator Pattern : Enhances object functionality dynamically but does not manage access.
- Flyweight Pattern : Shares objects to save memory, not for controlling resource access.
- The warship ‘Tavasya’ launched by GSL is a part of which defence project?
The DRDO-tested indigenous Man-Portable Anti-Tank Guided Missile (MPATGM) is categorised as which generation of missile?Â
- What kind of AI assistant is part of the AI Kiran initiative?
What is the name of the indigenous carbon fibre foot prosthesis launched by DRDO and AIIMS Bibinagar?Â
Which of the following statements given below are correct according to the Union Budget 2023-24, regarding indirect tax:
1.   Excise duty ...
Which Indian state is setting up enclosures in Banni, Rann of Kutch, for breeding cheetahs under Project Cheetah? Â
Who won the Qatar Grand Prix 2025?Â
Indian Space Research Organisation (ISRO) and IN-SPACe for the successful launch of India's maiden private rocket Vikram-Suborbital developed by ______.
What is the focus of the "One Nation One Subscription" scheme approved by the Cabinet?
Which economists were awarded the 2025 Nobel Prize in Economic Sciences?Â