go.uber.org/yarpc@v1.72.1/doc.go (about)

     1  // Copyright (c) 2022 Uber Technologies, Inc.
     2  //
     3  // Permission is hereby granted, free of charge, to any person obtaining a copy
     4  // of this software and associated documentation files (the "Software"), to deal
     5  // in the Software without restriction, including without limitation the rights
     6  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7  // copies of the Software, and to permit persons to whom the Software is
     8  // furnished to do so, subject to the following conditions:
     9  //
    10  // The above copyright notice and this permission notice shall be included in
    11  // all copies or substantial portions of the Software.
    12  //
    13  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    14  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    15  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    16  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    17  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    18  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    19  // THE SOFTWARE.
    20  
    21  // Package yarpc provides the YARPC service framework.
    22  //
    23  // With hundreds to thousands of services communicating with RPC, transport
    24  // protocols (like HTTP and TChannel), encoding protocols (like JSON or
    25  // Thrift), and peer choosers are the concepts that vary year over year.
    26  // Separating these concerns allows services to change transports and wire
    27  // protocols without changing call sites or request handlers, build proxies and
    28  // wire protocol bridges, or experiment with load balancing strategies.
    29  // YARPC is a toolkit for services and proxies.
    30  //
    31  // YARPC breaks RPC into interchangeable encodings, transports, and peer
    32  // choosers.
    33  // YARPC for Go provides reference implementations for HTTP/1.1, TChannel and gRPC
    34  // transports, and also raw, JSON, Thrift, and Protobuf encodings.
    35  // YARPC for Go provides a round robin peer chooser and experimental
    36  // implementations for debug pages and rate limiting.
    37  // YARPC for Go plans to provide a load balancer that uses a
    38  // least-pending-requests strategy.
    39  // Peer choosers can implement any strategy, including load balancing or sharding,
    40  // in turn bound to any peer list updater.
    41  //
    42  // Regardless of transport, every RPC has some common properties: caller name,
    43  // service name, procedure name, encoding name, deadline or TTL, headers,
    44  // baggage (multi-hop headers), and tracing.
    45  // Each RPC can also have an optional shard key, routing key, or routing
    46  // delegate for advanced routing.
    47  // YARPC transports use a shared API for capturing RPC metadata, so middleware
    48  // can apply to requests over any transport.
    49  //
    50  // Each YARPC transport protocol can implement inbound handlers and outbound
    51  // callers. Each of these can support different RPC types, like unary (request and
    52  // response) or oneway (request and receipt) RPC. A future release of YARPC will
    53  // add support for other RPC types including variations on streaming and pubsub.
    54  package yarpc