Skip to content

michalcichon/protobuf-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protobuf Samples

This repository is an integral part of the "High performance web services with Swift and Protocol Buffers" article available on Codete Blog.

This repository contains code samples used in the "High performance web services with Swift and Protocol Buffers" article. The server application was written in Swift and uses Kitura as a web framework and Swift Protobuf for serialization.

Repository structure

  • protobuf-server - the server application written in Swift and Kitura
  • protobuf-client - the iOS client application written in Swift
  • protobuf-gatling - load tests in Gatling

Protobuf Sample Server

It is a sample Kitura application serving enpoints that can work with JSON or Protobuf depending on the Accept header.

Requirements

  • Swift 3.1
  • Swift Package Manager
  • macOS or Linux (Ubuntu) OS
  • Ruby (for generating data assets only)

More information about the server application in the README file.

Protobuf Sample iOS Application

It is a sample iOS application that gets data from the server in JSON or Protobuf format.

Requirements

  • Sample Protobuf Server running
  • Xcode 8.3
  • Swift 3.1
  • Cocoapods 1.2.0

More information about the client application in the README file.

Protobuf Sample Gatling Load Tests

These are sample load tests for the sample server. It is generated by Gatling Recorder and can be run via sbt.

Requirements

  • sbt
  • Scala
  • Protobuf Sample Server running

More information about the load tests in the README file.

License

The source code is licensed under the MIT Licence. More information in the LICENSE file.

About

Code samples for my article on the @codete tech blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 90.9%
  • Scala 4.8%
  • Ruby 4.3%