grpc-swift VS grpc-web

Compare grpc-swift vs grpc-web and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
grpc-swift grpc-web
8 33
1,945 8,285
1.4% 1.0%
9.3 6.5
2 days ago 17 days ago
Swift JavaScript
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

grpc-swift

Posts with mentions or reviews of grpc-swift. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-19.
  • LinkedIn Adopts Protocol Buffers and Reduces Latency Up to 60%
    4 projects | news.ycombinator.com | 19 Jul 2023
  • Trouble building for ios device
    7 projects | /r/bazel | 23 Nov 2022
    load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "com_github_buildbuddy_io_rules_xcodeproj", sha256 = "564381b33261ba29e3c8f505de82fc398452700b605d785ce3e4b9dd6c73b623", url = "https://github.com/buildbuddy-io/rules_xcodeproj/releases/download/0.9.0/release.tar.gz", ) http_archive( name = "cgrindel_rules_spm", sha256 = "03718eb865a100ba4449ebcbca6d97bf6ea78fa17346ce6d55532312e8bf9aa8", strip_prefix = "rules_spm-0.11.0", url = "https://github.com/cgrindel/rules_spm/archive/v0.11.0.tar.gz", ) load( "@cgrindel_rules_spm//spm:defs.bzl", "spm_pkg", "spm_repositories", ) load( "@cgrindel_rules_spm//spm:deps.bzl", "spm_rules_dependencies", ) spm_rules_dependencies() load( "@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:repositories.bzl", "xcodeproj_rules_dependencies", ) xcodeproj_rules_dependencies() load( "@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies", ) apple_rules_dependencies() load( "@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies", ) swift_rules_dependencies() load( "@build_bazel_rules_swift//swift:extras.bzl", "swift_rules_extra_dependencies", ) swift_rules_extra_dependencies() load( "@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies", ) apple_support_dependencies() spm_repositories( name = "swift_pkgs", platforms = [ ".macOS(.v10_15)", ], dependencies = [ spm_pkg( url = "https://github.com/apple/swift-log.git", exact_version = "1.4.2", products = ["Logging"], ), spm_pkg( url = "https://github.com/pointfreeco/swift-composable-architecture.git", exact_version = "0.43.0", products = ["ComposableArchitecture"], ), spm_pkg( name = "Bow", url = "https://github.com/bow-swift/bow.git", exact_version = "0.8.0", products = ["Bow", "BowEffects", "BowOptics"], ), spm_pkg( url = "https://github.com/grpc/grpc-swift.git", exact_version = "1.7.3", products = ["GRPC"], ), spm_pkg( url = "https://github.com/hyperoslo/Cache", exact_version = "6.0.0", products = ["Cache"], ), ], )
  • anyone has used grpc in iOS app?
    1 project | /r/iOSProgramming | 3 Jul 2022
    Did you have a look at examples on grpc-swift ?
  • Considering gRPC-C++ for an iOS project
    2 projects | /r/iOSProgramming | 19 Feb 2022
    You don’t want to use the Swift version?
  • Fullstack grpc tutorials?
    1 project | /r/iOSProgramming | 24 Oct 2021
    The Basic Tutorial or examples from the gRPG-Swift repository might be useful to you as well.
  • Application design: communication from Rust to another language
    5 projects | /r/rust | 20 Jul 2021
    At the moment I would recommend gRPC for Swift and Rust, even though in general gRPC drives me insane, it is currently the most convenient choice. Use tonic for the Rust server-side, and grpc-swift for the client-side. I've had quite a lot of success with this in the past.
  • gRPC Implementation in Swift
    1 project | /r/swift | 4 Jun 2021
  • REST vs. gRPC vs. GraphQL
    10 projects | news.ycombinator.com | 15 Mar 2021
    Swift is at least supported via Objective-C, and swift-grpc looks solid https://github.com/grpc/grpc-swift

grpc-web

Posts with mentions or reviews of grpc-web. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-14.
  • Ask HN: WebSocket server transforming channel subscriptions to gRPC streams
    2 projects | news.ycombinator.com | 14 Aug 2023
    * Additionally, client can stream data to the backend server (if bidirectional GRPC streams are used). I.e. client sends WebSocket messages, those will be transformed to GRPC messages by WebSocket server and delivered to the application backend.

    As a result we have a system which allows to quickly create individual streams by using strict GRPC contract but terminating connections over WebSocket transport. So it works well in web browsers. After that no need to write WebSocket protocol, client implementation, handle WebSocket connection. This all will be solved by a suggested WebSocket server and its client SDKs.

    The mechanics is similar to Websocketd (https://github.com/joewalnes/websocketd), but instead of creating OS processes we create GRPC streams. The difference from grpc-web (https://github.com/grpc/grpc-web) is that we provide streaming capabilities but not exposing GRPC contract to the client - just allowing to stream any data as payload (both binary and text) with some wrappers from our client SDKs side for managing subscriptions. I.e. it's not native GRPC streams on the client side - we expose just Connection/Subscription object to stream in both directions. GRPC streams used only for communication between WebSocket server and backend. To mention - grpc-web does not support all kinds of streaming now (https://github.com/grpc/grpc-web#streaming-support) while proposed solution can. This all should provide a cross-platform way to quickly write streaming apps due to client SDKs and language-agnostic nature of GRPC.

    I personally see both pros and cons in this scheme (without concentrating on both too much here to keep the question short). I spent some time thinking about this myself, already have some working prototypes – but turned out need more opinions before moving forward with the idea and releasing this, kinda lost in doubts.

    My main question - whether this seems interesting for someone here? Do you find this useful and see practical value?

  • Build and Deploy a gRPC-Web App Using Rust Tonic and React
    7 projects | dev.to | 19 Jul 2023
    By default, web browsers do not support gRPC, but we will use gRPC-web to make it possible.
  • Lemmy v0.18.0 Release - A reddit alternative written in Rust.
    2 projects | /r/rust | 23 Jun 2023
    You just have to use a library implementation for JavaScript https://github.com/grpc/grpc-web
  • Full Stack Forays with Go and gRPC
    5 projects | dev.to | 5 Jun 2023
    TypeScript support remains an experimental feature of gRPC.
  • Seeking Opinion: Choosing Between Gateway and Envoy Proxy for Our Microservices Architecture
    1 project | /r/SoftwareEngineering | 2 Jun 2023
  • Introducing Tempo: low latency, cross-platform, end-to-end typesafe APIs
    12 projects | /r/programming | 2 May 2023
    The gRPC-Web protocol supports HTTP/1 and can be used from a browser.
  • gRPC on the client side
    9 projects | dev.to | 16 Mar 2023
    -- grpc-web
  • Introduction to gRPC
    1 project | dev.to | 12 Mar 2023
    gRPC is mainly used in server-to-server communication, but it can also be used in client-to-server communication. gRPC-web is a gRPC implementation for web browsers. It is a JavaScript library that allows you to call gRPC services from a web browser. It supports Unary and Streaming Server API calls.
  • gRPC vs REST: Comparing API Styles in Practice
    6 projects | dev.to | 21 Feb 2023
    Since we're using Envoy, there's one more neat trick that we can employ. It turns out that Envoy also support gRPC-Web out of the box, a JavaScript client designed to support gRPC communication from the browser! That means that we can send gRPC messages over HTTP/1.1 as base64 encoded strings or as binary protobufs. Messages will be sent through our proxy and on to our backend service. The advantage of this is smaller and more efficient wire communication which should lead to better performance.
  • Understanding gRPC Concepts, Use Cases & Best Practices
    9 projects | dev.to | 15 Jan 2023
    protoc-gen-grpc-web — a plugin that allows our front end to communicate with the backend using gRPC calls. A separate blog post on this coming up in the future.

What are some alternatives?

When comparing grpc-swift and grpc-web you can also consider the following projects:

hasura-cms - Automatically exposed GraphQL API via Hasura with schema + permissions for GraphCMS-like handling of content types

ngx-grpc - Angular gRPC framework

grpc-over-webrtc - gRPC over WebRTC

json-api - A specification for building JSON APIs

grpcurl - Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers

cffi - Safe* C foreign function interface for Rust, using proc macros and marshaling types.

buf - The best way of working with Protocol Buffers.

graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.

webrpc - webrpc is a schema-driven approach to writing backend services for modern Web apps and networks

Cache - :package: Nothing but Cache.

evans - Evans: more expressive universal gRPC client