You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdks/fs-python/README.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@
16
16
17
17
# FunctionStream Python SDK
18
18
19
-
FunctionStream SDK is a powerful Python library for building and deploying serverless functions that process messages from Apache Pulsar. It provides a simple yet flexible framework for creating event-driven applications with robust error handling, metrics collection, and resource management.
19
+
FunctionStream SDK is a powerful Python library for building and deploying serverless functions that process messages
20
+
from Apache Pulsar. It provides a simple yet flexible framework for creating event-driven applications with robust error
21
+
handling, metrics collection, and resource management.
20
22
21
23
## Features
22
24
@@ -103,6 +105,7 @@ modules:
103
105
### FSFunction
104
106
105
107
The main class for creating serverless functions. It handles:
108
+
106
109
- Message consumption and processing
107
110
- Response generation
108
111
- Resource management
@@ -112,6 +115,7 @@ The main class for creating serverless functions. It handles:
112
115
### Configuration
113
116
114
117
The SDK uses YAML configuration files to define:
118
+
115
119
- Pulsar connection settings
116
120
- Module selection
117
121
- Topic subscriptions
@@ -121,6 +125,7 @@ The SDK uses YAML configuration files to define:
121
125
### Metrics
122
126
123
127
Built-in metrics collection for:
128
+
124
129
- Request processing time
125
130
- Success/failure rates
126
131
- Message throughput
@@ -138,24 +143,24 @@ Check out the `examples` directory for complete examples:
138
143
## Best Practices
139
144
140
145
1. **Error Handling**
141
-
- Always handle exceptions in your process functions
142
-
- Use proper logging for debugging
143
-
- Implement graceful shutdown
146
+
- Always handle exceptions in your process functions
0 commit comments