From 6b67c0e618a7ac4d56c50680380ec545a7fce21b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D1=81=D0=BF=D1=88=D0=B8=D1=86=D0=BA=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= Date: Thu, 4 Jul 2024 15:25:27 +0500 Subject: [PATCH] feature: Rate Limiting pattern (#2973) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Основа проекта --- pom.xml | 1 + rate-limiting/README.md | 173 ++++++++++++++++++ rate-limiting/etc/proxy.urm.png | Bin 0 -> 28797 bytes rate-limiting/etc/proxy.urm.puml | 32 ++++ rate-limiting/pom.xml | 67 +++++++ .../src/main/java/com/iluwatar/Main.java | 7 + 6 files changed, 280 insertions(+) create mode 100644 rate-limiting/README.md create mode 100644 rate-limiting/etc/proxy.urm.png create mode 100644 rate-limiting/etc/proxy.urm.puml create mode 100644 rate-limiting/pom.xml create mode 100644 rate-limiting/src/main/java/com/iluwatar/Main.java diff --git a/pom.xml b/pom.xml index 6add1fdc6021..54eae1c0f684 100644 --- a/pom.xml +++ b/pom.xml @@ -216,6 +216,7 @@ server-session virtual-proxy function-composition + rate-limiting diff --git a/rate-limiting/README.md b/rate-limiting/README.md new file mode 100644 index 000000000000..f237fb47e9e5 --- /dev/null +++ b/rate-limiting/README.md @@ -0,0 +1,173 @@ +--- +title: "Proxy Pattern in Java: Enhancing Security and Control with Smart Proxies" +shortTitle: Proxy +description: "Explore the Proxy design pattern in Java with detailed examples. Learn how it provides controlled access, facilitates lazy initialization, and ensures security. Ideal for developers looking to implement advanced Java techniques." +category: Structural +language: en +tag: + - Decoupling + - Encapsulation + - Gang Of Four + - Lazy initialization + - Proxy + - Security + - Wrapping +--- + +## Also known as + +* Surrogate + +## Intent of Proxy Design Pattern + +The Proxy pattern in Java provides a surrogate or placeholder to effectively control access to an object, enhancing security and resource management. + +## Detailed Explanation of Proxy Pattern with Real-World Examples + +Real-world example + +> In a real-world scenario, consider a security guard at a gated community. The security guard acts as a proxy for the residents. When a visitor arrives, the guard checks the visitor's credentials and permissions before allowing them access to the community. If the visitor is authorized, the guard grants entry; if not, entry is denied. This ensures that only authorized individuals can access the community, much like a Proxy design pattern controls access to a specific object. + +In plain words + +> Utilizing the Java Proxy pattern, a class encapsulates the functionality of another, streamlining access control and operation efficiency. + +Wikipedia says + +> A proxy, in its most general form, is a class functioning as an interface to something else. A proxy is a wrapper or agent object that is being called by the client to access the real serving object behind the scenes. Use of the proxy can simply be forwarding to the real object, or can provide additional logic. In the proxy extra functionality can be provided, for example caching when operations on the real object are resource intensive, or checking preconditions before operations on the real object are invoked. + +## Programmatic Example of Proxy Pattern in Java + +Imagine a tower where the local wizards go to study their spells. The ivory tower can only be accessed through a proxy which ensures that only the first three wizards can enter. Here the proxy represents the functionality of the tower and adds access control to it. + +First, we have the `WizardTower` interface and the `IvoryTower` class. + +```java +public interface WizardTower { + void enter(Wizard wizard); +} +``` + +```java +@Slf4j +public class IvoryTower implements WizardTower { + public void enter(Wizard wizard) { + LOGGER.info("{} enters the tower.", wizard); + } +} +``` + +Then a simple `Wizard` class. + +```java +public class Wizard { + + private final String name; + + public Wizard(String name) { + this.name = name; + } + + @Override + public String toString() { + return name; + } +} +``` + +Then we have the `WizardTowerProxy` to add access control to `WizardTower`. + +```java +@Slf4j +public class WizardTowerProxy implements WizardTower { + + private static final int NUM_WIZARDS_ALLOWED = 3; + private int numWizards; + private final WizardTower tower; + + public WizardTowerProxy(WizardTower tower) { + this.tower = tower; + } + + @Override + public void enter(Wizard wizard) { + if (numWizards < NUM_WIZARDS_ALLOWED) { + tower.enter(wizard); + numWizards++; + } else { + LOGGER.info("{} is not allowed to enter!", wizard); + } + } +} +``` + +And here is the tower entering scenario. + +```java + public static void main(String[] args) { + + var proxy = new WizardTowerProxy(new IvoryTower()); + proxy.enter(new Wizard("Red wizard")); + proxy.enter(new Wizard("White wizard")); + proxy.enter(new Wizard("Black wizard")); + proxy.enter(new Wizard("Green wizard")); + proxy.enter(new Wizard("Brown wizard")); +} +``` + +Program output: + +``` +08:42:06.183 [main] INFO com.iluwatar.proxy.IvoryTower -- Red wizard enters the tower. +08:42:06.186 [main] INFO com.iluwatar.proxy.IvoryTower -- White wizard enters the tower. +08:42:06.186 [main] INFO com.iluwatar.proxy.IvoryTower -- Black wizard enters the tower. +08:42:06.186 [main] INFO com.iluwatar.proxy.WizardTowerProxy -- Green wizard is not allowed to enter! +08:42:06.186 [main] INFO com.iluwatar.proxy.WizardTowerProxy -- Brown wizard is not allowed to enter! +``` + +## When to Use the Proxy Pattern in Java + +Proxy is applicable whenever there is a need for a more versatile or sophisticated reference to an object than a simple pointer. Here are several common situations in which the Proxy pattern is applicable. Typically, the proxy pattern is used to + +* Control access to another object +* Lazy initialization +* Implement logging +* Facilitate network connection +* Count references to an object +* Provide a local representation for an object that is in a different address space. + +## Real-World Applications of Proxy Pattern in Java + +* Virtual Proxies: In applications that need heavy resources like large images or complex calculations, virtual proxies can be used to instantiate objects only when needed. +* Remote Proxies: Used in remote method invocation (RMI) to manage interactions with remote objects. +* Protection Proxies: Control access to the original object to ensure proper authorization. +* [java.lang.reflect.Proxy](http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Proxy.html) +* [Apache Commons Proxy](https://commons.apache.org/proper/commons-proxy/) +* Mocking frameworks [Mockito](https://site.mockito.org/),[Powermock](https://powermock.github.io/), [EasyMock](https://easymock.org/) +* [UIAppearance](https://developer.apple.com/documentation/uikit/uiappearance) + +## Benefits and Trade-offs of Proxy Pattern + +Benefits: + +* Controlled Access: Proxies control access to the real object, allowing for checks, logging, or other operations. +* Lazy Initialization: Proxies can delay the creation and initialization of resource-intensive objects until they are needed. +* Remote Proxy Handling: Simplifies interaction with remote objects by handling the network communication. + +Trade-offs: + +* Overhead: Adding a proxy introduces additional layers that might add overhead. +* Complexity: Increases the complexity of the system by adding more classes. + +## Related Java Design Patterns + +* [Adapter](https://java-design-patterns.com/patterns/adapter/): The Adapter pattern changes the interface of an existing object, whereas Proxy provides the same interface as the original object. +* [Ambassador](https://java-design-patterns.com/patterns/ambassador/): Ambassador is similar to Proxy as it acts as an intermediary, especially in remote communications, enhancing access control and monitoring. +* [Decorator](https://java-design-patterns.com/patterns/decorator/): Both Decorator and Proxy patterns provide a level of indirection, but the Decorator pattern adds responsibilities to objects dynamically, while Proxy controls access. +* [Facade](https://java-design-patterns.com/patterns/facade/): Facade provides a simplified interface to a complex subsystem, while Proxy controls access to a particular object. + +## References and Credits + +* [Design Patterns: Elements of Reusable Object-Oriented Software](https://amzn.to/3w0pvKI) +* [Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software](https://amzn.to/49NGldq) +* [Java Design Patterns: A Hands-On Experience with Real-World Examples](https://amzn.to/3yhh525) diff --git a/rate-limiting/etc/proxy.urm.png b/rate-limiting/etc/proxy.urm.png new file mode 100644 index 0000000000000000000000000000000000000000..a0c94fc7c71722efadfc63ebe641121e87bfeb3a GIT binary patch literal 28797 zcmb?@WmuG5+b#;IfQXU;5=ytUlG5GX-Q6&hf}ntONh2`S(A}VbbPWy&2nf=tGz_s9 z>iaz3`|bU6dw3jO*Pm?(WRT#^!8q;^^+-V9#pi z^GDzfmp1C!?*Dm?as#}^J3Ufu*KX$N{R`H$E9ZlFh03sT`y+^V=t?$gfxuKhzUDiOig{Ve(8Q>-DJ5H!{9(UU@U$`!*tlGtf*i zYs2QZcI%_})b8Vl2CZV4@d+F{7=?RH&RZ0|){4+Ni;RxTd5)hxUXneHH=cQ64)5om zkD==^p&#D)-u10a^#~U>j5vmG zu(yxDS*6l=b2dCx%IhI7nzB}pULqL~8nl{EXTnu}Kzd&7uYdoPF;;H7k}xhXKZ=jJ zKDGP{3W_7TjJSxpx8YXCZEgG>($5%#>MxkTR&>pAljz}cAJHEbR!(M*z2z>f{EREd z#gp@Sjv#i&L_*!ZP@G!DEFyf&xHHH=eBz2O7inbWlpM^T)coT@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iting/etc/proxy.urm.puml b/rate-limiting/etc/proxy.urm.puml new file mode 100644 index 000000000000..ffe0fa446074 --- /dev/null +++ b/rate-limiting/etc/proxy.urm.puml @@ -0,0 +1,32 @@ +@startuml +package com.iluwatar.proxy { + class App { + + App() + + main(args : String[]) {static} + } + class IvoryTower { + - LOGGER : Logger {static} + + IvoryTower() + + enter(wizard : Wizard) + } + class Wizard { + - name : String + + Wizard(name : String) + + toString() : String + } + interface WizardTower { + + enter(Wizard) {abstract} + } + class WizardTowerProxy { + - LOGGER : Logger {static} + - NUM_WIZARDS_ALLOWED : int {static} + - numWizards : int + - tower : WizardTower + + WizardTowerProxy(tower : WizardTower) + + enter(wizard : Wizard) + } +} +WizardTowerProxy --> "-tower" WizardTower +IvoryTower ..|> WizardTower +WizardTowerProxy ..|> WizardTower +@enduml \ No newline at end of file diff --git a/rate-limiting/pom.xml b/rate-limiting/pom.xml new file mode 100644 index 000000000000..2c186493680f --- /dev/null +++ b/rate-limiting/pom.xml @@ -0,0 +1,67 @@ + + + + 4.0.0 + + com.iluwatar + java-design-patterns + 1.26.0-SNAPSHOT + + rate-limiting + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.mockito + mockito-core + test + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + + + + com.iluwatar.proxy.App + + + + + + + + + \ No newline at end of file diff --git a/rate-limiting/src/main/java/com/iluwatar/Main.java b/rate-limiting/src/main/java/com/iluwatar/Main.java new file mode 100644 index 000000000000..49bd2db0610f --- /dev/null +++ b/rate-limiting/src/main/java/com/iluwatar/Main.java @@ -0,0 +1,7 @@ +package com.iluwatar; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file