Coder Social home page Coder Social logo

appcenter-sample-export's Introduction

App Center Export Parser

This repo contains sample .NET Core library for parsing Export blobs created via App Center Continuous Export.

Sample 1 - Console App to forward logs for specific users to their account

This sample is located under sample-console-app. The console app can be used to selectively forward logs from one storage account to another. This can be useful for satisfying one of GDPR export requests.

To build the sample:

dotnet build export-parser.sln

To run the sample:

sample-console-app.exe <installId> <blob storage connection string where export is pointing to> <blob storage connection string where filtered data will go> <output container name>

Note: since the sample downloads each export blob to a local machine, it will be singnificantly faster if the code was executed on Azure VM in the same data center as the storage account.

Sample 2 - Azure Function to forward logs for specific users to their account

This sample is located under sample-azure-function. This Azure Function is similar to the console app sample, however is can be used to selectively forward logs on an ongoing basis.

To build the sample:

dotnet build export-parser.sln

To deploy the function refer to this article.

Sample 3 - Continuously stream export data

This sample shows how to continuously stream data from your export Azure storage container to Event Hubs and to another Azure storage container. This sample is located under export-streaming. This sample is a console application that creates an observable that parses exported data, and multicasts the observable data into both an Event Hub and an Azure storage container.

To build the sample:

dotnet build export-streaming.sln

appcenter-sample-export's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appcenter-sample-export's Issues

Reading from a blob takes to much time

let say that I want all the logs before 1 year, this sample app will try to access all the possible directory for months [1,12] then it will try to access all the possible directories for days [1,31] then every possible minute [1,59].

In a simple calculation, if accessing a directory will takes 1 sec and reading from a file (inside the minute directory) will takes 4 sec. then to get all the logs before 1 year will takes
(12+ 31)+ (59*4) = 451 seconds = 7.51667 minutes.

let's says I am using this into my API, the user should wait for 7.51667 minutes to get his logs ( without counting the time needed to format the API).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.