Skip to content

Commit 6d54acd

Browse files
committed
Switch links to Tencent Cloud International
1 parent 030fb2a commit 6d54acd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ When using serverless functions, attention must be given to resource utilization
88

99
Combine this with Swift's developer friendliness, expressiveness, and emphasis on safety, and we have a solution that is great for developers at all skill levels, scalable, and cost effective.
1010

11-
Swift Tencent SCF Runtime is a forked version from [Swift AWS Lambda Runtime](https://github.com/swift-server/swift-aws-lambda-runtime), designed to make building cloud functions in Swift simple and safe. The library is an implementation of the [Tencent SCF Custom Runtime API](https://cloud.tencent.com/document/product/583/47274#custom-runtime-.E8.BF.90.E8.A1.8C.E6.97.B6-api) and uses an embedded asynchronous HTTP Client based on [SwiftNIO](http://github.com/apple/swift-nio) that is fine-tuned for performance in the SCF Custom Runtime context. The library provides a multi-tier API that allows building a range of cloud functions: From quick and simple Closures to complex, performance-sensitive event handlers.
11+
Swift Tencent SCF Runtime is a forked version from [Swift AWS Lambda Runtime](https://github.com/swift-server/swift-aws-lambda-runtime), designed to make building cloud functions in Swift simple and safe. The library is an implementation of the [Tencent SCF Custom Runtime API](https://intl.cloud.tencent.com/document/product/583/38129#custom-runtime-api) and uses an embedded asynchronous HTTP Client based on [SwiftNIO](http://github.com/apple/swift-nio) that is fine-tuned for performance in the SCF Custom Runtime context. The library provides a multi-tier API that allows building a range of cloud functions: From quick and simple Closures to complex, performance-sensitive event handlers.
1212

1313
## Project status
1414

@@ -136,11 +136,11 @@ Beyond the small cognitive complexity of using the `EventLoopFuture` based APIs,
136136

137137
To deploy SCF functions to Tencent SCF Platform, you need to compile the code for CentOS 7.6 which is the OS used on SCF microVMs, package it as a Zip file, and upload to Tencent Cloud.
138138

139-
Tencent Cloud offers several tools to interact and deploy cloud functions to SCF including [TCCLI](https://cloud.tencent.com/product/cli) and [Serverless Framework](https://serverless.com/cn/). The [Examples Directory](/Examples) includes complete sample build and deployment scripts that utilize these tools.
139+
Tencent Cloud offers several tools to interact and deploy cloud functions to SCF including [TCCLI](https://intl.cloud.tencent.com/product/cli) and [Serverless Framework](https://serverless.com/cn/). The [Examples Directory](/Examples) includes complete sample build and deployment scripts that utilize these tools.
140140

141141
Note the examples mentioned above use dynamic linking, therefore bundle the required Swift libraries in the Zip package along side the executable. You may choose to link the SCF function statically (using `-static-stdlib`) which could improve performance but requires additional linker flags.
142142

143-
To build the SCF function for CentOS 7.6, use the Docker image published on [Swift toolchains for SCF](https://hub.docker.com/r/stevapple/swift-scf), as demonstrated in the examples.
143+
To build the SCF function for CentOS 7.6, use the Docker image published as [Swift toolchains for SCF](https://hub.docker.com/r/stevapple/swift-scf), as demonstrated in the examples.
144144

145145
## Architecture
146146

@@ -357,13 +357,13 @@ SCF.run { (context, name: String, callback: @escaping (Result<String, Error>) ->
357357
}
358358
```
359359

360-
We simulate the [SCF environment](https://cloud.tencent.com/document/product/583/30228) with some variables set by default. The value set by user code is of the highest priority, while the framework's default has the lowest.
360+
We simulate the [SCF environment](https://intl.cloud.tencent.com/document/product/583/32748) with some variables set by default. The value set by user code is of the highest priority, while the framework's default has the lowest.
361361

362362
You can read some contextual variables through `SCF.Context`. All the environment variables can be accessed through `SCF.Env`.
363363

364364
### SCF Runtime Engine Integration
365365

366-
The library is designed to integrate with SCF Runtime Engine via the [SCF Custom Runtime API](https://cloud.tencent.com/document/product/583/47274#custom-runtime-.E8.BF.90.E8.A1.8C.E6.97.B6-api) which was introduced as part of [SCF Custom Runtime](https://cloud.tencent.com/document/product/583/47274) in 2020. The latter is an HTTP server that exposes three main RESTful endpoint:
366+
The library is designed to integrate with SCF Runtime Engine via the [SCF Custom Runtime API](https://intl.cloud.tencent.com/document/product/583/38129#custom-runtime-api) which was introduced as part of [SCF Custom Runtime](https://intl.cloud.tencent.com/document/product/583/38129) in 2020. The latter is an HTTP server that exposes three main RESTful endpoint:
367367

368368
* `/runtime/invocation/next`
369369
* `/runtime/invocation/response`
@@ -395,11 +395,11 @@ By default, the library also registers a Signal handler that traps `INT` and `TE
395395

396396
Serverless Cloud Functions can be invoked directly from the SCF console, SCF API, TCCLI and Tencent Cloud toolkit. More commonly, they are invoked as a reaction to an events coming from the Tencent Cloud platform. To make it easier to integrate with Tencent Cloud platform events, the library includes an `TencentSCFEvents` target which provides abstractions for many commonly used events. Additional events can be easily modeled when needed following the same patterns set by `TencentSCFEvents`. Integration points with the Tencent Cloud platform include:
397397

398-
* [APIGateway Requests](https://cloud.tencent.com/document/product/583/12513)
399-
* [COS Events](https://cloud.tencent.com/document/product/583/9707)
400-
* [Timer Events](https://cloud.tencent.com/document/product/583/9708)
401-
* [CMQ Topic Messages](https://cloud.tencent.com/document/product/583/11517)
402-
* [CKafka Messages](https://cloud.tencent.com/document/product/583/17530)
398+
* [APIGateway Requests](https://intl.cloud.tencent.com/document/product/583/12513)
399+
* [COS Events](https://intl.cloud.tencent.com/document/product/583/9707)
400+
* [Timer Events](https://intl.cloud.tencent.com/document/product/583/9708)
401+
* [CMQ Topic Messages](https://intl.cloud.tencent.com/document/product/583/11517)
402+
* [CKafka Messages](https://intl.cloud.tencent.com/document/product/583/17530)
403403

404404
**Note**: Each one of the integration points mentioned above includes a set of `Decodable` structs that transform Tencent Cloud's data model for these APIs. APIGateway response is wrapped into an `Encodable` struct with three different initializers to help you build any valid response.
405405

0 commit comments

Comments
 (0)