Asynchronous Server Side Swift Progamming with GCD and Operation
Article Reference: https://developer.ibm.com/swift/2018/05/22/server-side-swift-using-gcd/
Execution:
-
Clone the code
-
Go to folder and use command 'swift build' to fetch the dependancy and build.
-
Run the ./.build/x86_64-apple-macosx10.10/debug/server-swift-GCD
-
Use any Rest client to execute the following scenario
URL end points: // all are GET method
- http://localhost/dataIntensiveJobGCD/dependent
- http://localhost/dataIntensiveJobGCD/independent
- http://localhost/dataIntensiveJobAsync/dependent
- http://localhost/dataIntensiveJobAsync/independent
- http://localhost/dataIntensiveJobGCD/iterate
- http://localhost/dataIntensiveJobAsync/iterate
Author: Sangeeth K Sivakumar https://www.linkedin.com/in/sangeethksivakumar/