Zip
Unstable API
0.10.0
@project-lakechain/zip-processor
The Zip deflate processor makes it easy to package multiple documents into a single compressed Zip archive. This makes it possible to package the result of the processing of specific documents into a single archive ready to be stored, or shared with another system.
🗄️ Deflating Archives
Section titled “🗄️ Deflating Archives”To use this middleware, you import it in your CDK stack and connect it to a data source that provides documents.
import { ZipDeflateProcessor } from '@project-lakechain/zip-processor';import { CacheStorage } from '@project-lakechain/core';
class Stack extends cdk.Stack { constructor(scope: cdk.Construct, id: string) { // Sample bucket. const bucket = new s3.Bucket(this, 'Bucket', {});
// The cache storage. const cache = new CacheStorage(this, 'Cache');
// Create the Zip deflate processor. const zipProcessor = new ZipDeflateProcessor.Builder() .withScope(this) .withIdentifier('ZipProcessor') .withCacheStorage(cache) .withSource(source) .build(); }}🏗️ Architecture
Section titled “🏗️ Architecture”The Zip deflate processor uses AWS Lambda as a compute for creating archives. The compute can run up to 15 minutes to package the files into a compressed archive, and provides the next middlewares in the pipeline with the created Zip archive

🏷️ Properties
Section titled “🏷️ Properties”Supported Inputs
Section titled “Supported Inputs”| Mime Type | Description |
|---|---|
*/* |
This middleware supports any type of documents as an input. |
Supported Outputs
Section titled “Supported Outputs”| Mime Type | Description |
|---|---|
application/zip |
The Zip deflate processor produces Zip archives. |
Supported Compute Types
Section titled “Supported Compute Types”| Type | Description |
|---|---|
CPU |
This middleware only supports CPU compute. |
📖 Examples
Section titled “📖 Examples”- Deflate Pipeline - An example showcasing how to archive multiple documents.