Reflect 4 Proxy -

public class RealUserService implements UserService 
    @Override
    public String getUserName(int userId) 
        return "User_" + userId;
@Override
public void updateUser(int userId, String newName) 
    System.out.println("Updated user " + userId + " to " + newName);

TLS termination example:

listeners:
  - name: https
    address: 0.0.0.0
    port: 443
    protocol: https
    tls:
      cert_file: /etc/reflect/certs/fullchain.pem
      key_file: /etc/reflect/certs/privkey.pem
routes:
  - listener: https
    match:
      host: example.com
    upstreams:
      - address: 10.0.0.5
        port: 8080

TLS passthrough example (protocol: tcp, route by SNI): reflect 4 proxy

listeners:
  - name: tls-pass
    address: 0.0.0.0
    port: 443
    protocol: tcp
routes:
  - listener: tls-pass
    match:
      sni: app.example.com
    upstreams:
      - address: 10.0.0.7
        port: 443

For this guide, we will build a conceptual Reflect Proxy v4. Version 4 implies non-blocking I/O (Event loop friendly), support for HTTP/2, and TLS reflection capabilities. TLS termination example: listeners: - name: https address: