SWPatterns.com
Home
Patterns
Languages
Contribute
  • Peer-to-Peer - Dart

    The Peer-to-Peer pattern establishes direct communication and data exchange between participating entities (peers) without relying on a central server. Each peer acts as both a client and a server, sharing resources and responsibilities. In this Dart example, we simulate a basic peer-to-peer network using streams and …

    Read More
  • Peer-to-Peer - Scala

    The Peer-to-Peer (P2P) pattern allows individual nodes (peers) in a network to directly share resources without relying on a central server. Each peer acts as both a client and a server. This implementation uses Akka actors to represent peers. Each actor holds a shared resource (a simple string in this case) and can …

    Read More
  • Peer-to-Peer - PHP

    The Peer-to-Peer (P2P) pattern enables direct communication and data exchange between independent components (“peers”) without relying on a central server or intermediary. Each peer acts as both a client and a server, discovering and interacting with other peers directly. This implementation uses simple …

    Read More
  • Peer-to-Peer - Ruby

    The Peer-to-Peer pattern establishes direct communication and data exchange between nodes (peers) in a network without relying on a central server. Each peer acts as both a client and a server, contributing resources and accessing resources from others. This example simulates a simple peer network using Ruby’s socket …

    Read More
  • Peer-to-Peer - Swift

    The Peer-to-Peer (P2P) pattern enables direct communication and data exchange between individual nodes (peers) in a network, without relying on a central server. This implementation simulates a basic chat application where peers can send and receive messages directly. We use a simple Peer class to represent each …

    Read More
  • Peer-to-Peer - Kotlin

    The Peer-to-Peer (P2P) pattern enables direct communication and data exchange between independent entities (peers) without relying on a central server. Each peer acts as both client and server. This Kotlin example uses Kotlin Coroutines and Channels to simulate a simple P2P network. Peers broadcast messages to each …

    Read More
  • Peer-to-Peer - Rust

    The Peer-to-Peer (P2P) pattern enables direct communication and resource sharing between nodes (peers) in a network, removing the need for a central server. This example uses Rust’s asynchronous runtime (tokio) and UDP sockets to simulate a simple P2P network where peers can broadcast messages to each other. Each …

    Read More
  • Peer-to-Peer - Go

    The Peer-to-Peer (P2P) pattern enables decentralized data sharing and communication directly between nodes (peers) in a network, without relying on a central server. Each peer acts as both a client and a server. This example simulates a simple P2P file sharing system using goroutines and channels in Go. Each peer …

    Read More
  • Peer-to-Peer - C

    The Peer-to-Peer (P2P) pattern distributes tasks or data among multiple independent peers, rather than relying on a central server. Each peer acts as both a client and a server, sharing resources directly with other peers. This example simulates a simple P2P network for file sharing. Each process represents a peer, …

    Read More
  • Peer-to-Peer - C++

    The Peer-to-Peer (P2P) pattern establishes direct communication and resource sharing between nodes (peers) in a network without relying on a central server. Each peer acts as both a client and a server. This implementation uses a simple TCP socket-based approach. Each peer listens for incoming connections while also …

    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Recent Posts

  • Retry with Backoff
  • Master-Slave
  • Health Check Endpoint
  • Null Object
  • Load Shedding
  • Service Discovery
  • Resequencer
  • Outbox Pattern

C 56 C++ 56 C_SHARP 56 GO 56 JAVA 56 JAVASCRIPT 56 KOTLIN 56 PYTHON 56 RUST 56 DART 55 PHP 55 RUBY 55 SCALA 55 SWIFT 55 TYPESCRIPT 55

BEHAVIORAL 147 ARCHITECTURAL 37 DDD 33 CONCURRENCY 26 INTEGRATION 21 CREATIONAL 18 DISTRIBUTED SYSTEMS 15 GOF 15 STRUCTURAL 13 RELIABILITY 10 SCALABILITY 10 PERFORMANCE 9 RESILIENCE 9 MICROSERVICES 7 OBSERVABILITY 6 MESSAGING 5 OPERATIONAL 5 DATA ACCESS 4 DEPLOYMENT 4 WEB 4 BEST PRACTICE 3 CLOUD 3 DATA 3 INFRASTRUCTURE 3 PRESENTATION 3 SECURITY 3 ARCHITECTURE 2 ASYNCHRONOUS 2 COMMUNICATION 2 DATA PROCESSING 2 DESIGN PATTERNS 2 DISTRIBUTED 2 DISTRIBUTED SYSTEM 2 EVENT-DRIVEN 2 FUNCTIONAL 2 IDIOMATIC 2 OBJECT-ORIENTED 2 ORM 2 SYSTEM 2 UI 2 AI 1 ANTI_PATTERN 1 AUTOMATION 1 CACHING 1 COLLABORATION 1 CONCURRENT 1 CQRS 1 CROSS-CUTTING 1 DATA MODELING 1 DATABASE 1 DESIGN PRINCIPLES 1 DEVELOPMENT 1 DEVOPS 1 DOMAIN 1 ENTERPRISE INTEGRATION 1 EXTENSIBILITY 1 FOUNDATIONAL 1 FRONTEND 1 KUBERNETES 1 LEGACY 1 LOOSELY COUPLED 1 MEMORY MANAGEMENT 1 MESSAGE 1 MESSAGE-QUEUE 1 METAPROGRAMMING 1 MIDDLEWARE 1 MONITORING 1 NETWORKING 1 OBJECT-CREATION 1 OBJECT-RELATIONAL 1 OBJECT-STRUCTURAL 1 OOA 1 OPERATIONS 1 PARALLELISM 1 PERSISTENCE 1 PROCESSING 1 REACTIVE 1 REFACTORING 1 RELEASE 1 ROBUSTNESS 1 SOFTWARE ARCHITECTURE 1 STATE 1 STATE MANAGEMENT 1 STRATEGIC 1 STRATEGIC DESIGN 1 TRADITIONAL 1 TRANSVERSAL 1 WEB APPLICATION 1

ABSTRACT FACTORY 15 ADAPTER 15 BLACKBOARD 15 BRIDGE 15 BUILDER 15 CHAIN OF RESPONSIBILITY 15 CLEAN ARCHITECTURE 15 CLIENT-SERVER 15 CLUSTER-BASED ARCHITECTURE 15 COMMAND 15 COMPOSITE 15 DECORATOR 15 DEPENDENCY INJECTION 15 EVENT-DRIVEN ARCHITECTURE 15 EXTENSION OBJECT 15 FACADE 15 FACTORY METHOD 15 HEXAGONAL ARCHITECTURE 15 INTERPRETER 15 ITERATOR 15 LAYERED ARCHITECTURE 15 LAZY INITIALIZATION 15 MASTER-SLAVE 15 MEDIATOR 15 MEMENTO 15 MESSAGE BROKER 15 MICROKERNEL 15 MICROSERVICES 15 MODULE 15 MONOLITH 15 MULTITON 15 N-TIER 15 NULL OBJECT 15 OBJECT POOL 15 OBSERVER 15 ONION ARCHITECTURE 15 PEER-TO-PEER 15 PIPES AND FILTERS 15 POLICY 15 PROTOTYPE 15 PROXY 15 PUBLISH-SUBSCRIBE 15 SELF-CONTAINED SYSTEMS 15 SERVICE LOCATOR 15 SHARED-NOTHING 15 SINGLETON 15 SNAPSHOT 15 SOA 15 SPACE-BASED ARCHITECTURE 15 SPECIFICATION 15 STATE 15 STRATEGY 15 TEMPLATE METHOD 15 VISITOR 15 FLYWEIGHT 14 SUPERVISOR-WORKER 10
SWPatterns.com

Licenza Creative Commons - Made with ❤️ in Bologna - for info contact me on GitHub or Twitter