Skip to content

Cloud Function event processors for batch uploads to Pubsub

Notifications You must be signed in to change notification settings

ezbc/drug-portal-cloud-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Function event processors for batch uploads to Pubsub.

Overview

Two cloud functions are included in this project:

  1. uploadFromUrl - for downloading a public file via HTTP(s) to a Google Cloud Storage Bucket.

  2. publishFDA - for processing a batched partition export from openFDA.

These two cloud functions enable a streaming perscription to uploading batch data. uploadFromUrl downloads a user-specified public file to a Google Cloud Storage Bucket. The bucket pushes a notification of the new object on GCS to publishFda. publishFda unzips the file and streams records to a Pubsub message queue. Subscribers downstream can then process the individual messages in Pubsub as a stream.

About

Cloud Function event processors for batch uploads to Pubsub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published