René's URL Explorer Experiment


Title: Feast API: Adding a new historical store · Issue #482 · feast-dev/feast · GitHub

Open Graph Title: Feast API: Adding a new historical store · Issue #482 · feast-dev/feast

X Title: Feast API: Adding a new historical store · Issue #482 · feast-dev/feast

Description: 1. Introduction We've had a lot of demand for either open source or AWS batch stores (#367, #259). Folks from the community have asked us how they can contribute code to add their stores types. In this issue I will walk through how batch...

Open Graph Description: 1. Introduction We've had a lot of demand for either open source or AWS batch stores (#367, #259). Folks from the community have asked us how they can contribute code to add their stores types. In ...

X Description: 1. Introduction We've had a lot of demand for either open source or AWS batch stores (#367, #259). Folks from the community have asked us how they can contribute code to add their stores types....

Opengraph URL: https://github.com/feast-dev/feast/issues/482

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feast API: Adding a new historical store","articleBody":"## 1. Introduction\r\nWe've had a lot of demand for either open source or AWS batch stores (#367, #259). Folks from the community have asked us how they can contribute code to add their stores types. \r\n\r\nIn this issue I will walk through how batch stores are currently being used and how a new batch store type can be added.\r\n\r\n## 2. Overview\r\nFeast interacts with a batch store in two places\r\n- **Data ingestion:** Ingestion jobs that load data into stores must be able to locate stores, apply migrations, and write data into feature set tables.\r\n- **Feature serving (batch):** Feast serving executes batch retrieval jobs in order for users to export historical feature data.\r\n\r\n## 3. Data ingestion\r\nFeast creates and manages population jobs that stream in data from upstream data sources. Currently Feast only supports Kafka as a data source, meaning these jobs are all long running. Batch ingestion pushes data to Kafka topics after which they are picked up by these \"population\" jobs.\r\n\r\nIn order for the ingestion + population flow to complete, the destination store must be writable. This means that Feast must be able to create the appropriate tables/schemas in the store and also write data from the population job into the store.\r\n\r\nCurrently Feast Core starts and manages these population jobs that ingest data into stores, although we are planning to move this responsibility to the serving layer. Feast Core starts an Apache Beam job which synchronously runs migrations on the destination store and subsequently starts consuming from Kafka and publishing records.\r\n\r\nBelow is a \"happy-path\" example of a batch ingestion process:\r\n![Untitled (1)](https://user-images.githubusercontent.com/6728866/74807906-91e73c00-5324-11ea-8ba5-2b43c7c5282b.png)\r\n\r\nIn order to accommodate a new store type, the Apache Beam job needs to be updated to support\r\n- Setup (create tables/schemas): The current implementation for BigQuery/Redis is captured in  [StoreUtil.java](https://github.com/gojek/feast/blob/master/ingestion/src/main/java/feast/ingestion/utils/StoreUtil.java)\r\n- Writes: A store specific client needs to be implemented that can write to a new store type in [WriteToStore.java](https://github.com/gojek/feast/blob/master/ingestion/src/main/java/feast/ingestion/transform/WriteToStore.java#L90)\r\n\r\n## 4. Feature serving (batch)\r\n\r\nFeast Serving is a web service that allows for the retrieval of feature data from a batch feature store. Below is a sequence diagram for a typical feature request from a batch store.\r\n\r\n![Untitled](https://user-images.githubusercontent.com/6728866/74797157-702a8c80-5305-11ea-8901-bf6f4eb075f9.png)\r\n\r\nCurrently we only have support for BigQuery has a batch store. The entry point for this implementation is the [BigQueryServingService](https://github.com/gojek/feast/blob/master/serving/src/main/java/feast/serving/service/BigQueryServingService.java), which extends the [ServingService](https://github.com/gojek/feast/blob/master/serving/src/main/java/feast/serving/service/ServingService.java#L28:18) interface.\r\n\r\n```\r\npublic interface ServingService {\r\n  GetFeastServingInfoResponse getFeastServingInfo(GetFeastServingInfoRequest getFeastServingInfoRequest);\r\n  GetOnlineFeaturesResponse getOnlineFeatures(GetOnlineFeaturesRequest getFeaturesRequest);\r\n  GetBatchFeaturesResponse getBatchFeatures(GetBatchFeaturesRequest getFeaturesRequest);\r\n  GetJobResponse getJob(GetJobRequest getJobRequest);\r\n}\r\n```\r\n\r\nThe ServingService is called from the wrapping gRPC service [ServingService](https://github.com/gojek/feast/blob/master/protos/feast/serving/ServingService.proto#L29), where the functionality is more clearly described.\r\n\r\nThe interface defines the following methods\r\n- **getFeastServingInfo**: Get the store type, either online or offline.\r\n- **getOnlineFeatures**: Get online features synchronously.\r\n- **getBatchFeatures**: Get batch features asynchronously. Retrieval for batch features always happens asynchronously, because of the time taken for an export to complete. This method returns immediately with a JobId to the client. The client can then poll the job status until the query has reached a terminal state (succeeded or failed). \r\n- **getJob**: Should return the Job status for a specific Job Id\r\n\r\n**Notes on the current design:**\r\nAlthough the actual functionality will be retained, the structure of these interfaces will probably change away from extending a `service` interface and towards having a `store` interface. There are various problems with the current implementation\r\n1. Batch and online stores share a single interface. I believe the intention here was to allow some stores to support both online and historical/batch storage, but for most stores this isn't the case. There is also no reason why we can't have two interfaces here. Ideally this should be split in two.\r\n2. The current approach is to extend services for each new store type, but this seems to be a poor abstractions. Ideally we would have both a batch and online store interface (not service interface), which is called from a single serving implementation. This approach would be a clearer separation of concerns and would prevent things like job management happening within a service implementation.\r\n","author":{"url":"https://github.com/woop","@type":"Person","name":"woop"},"datePublished":"2020-02-19T06:55:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":34},"url":"https://github.com/482/feast/issues/482"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:55e876c2-8a15-458c-2888-5d760d9cf3fc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8FC:3CF7C2:1D4FC28:277B34B:697AAA8E
html-safe-nonce0fc72537e2a25e7a4e06f5c4f62a271f450ff0bbaacb6eb868b494700c581591
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEZDOjNDRjdDMjoxRDRGQzI4OjI3N0IzNEI6Njk3QUFBOEUiLCJ2aXNpdG9yX2lkIjoiNTYyMDI3ODU4MDUwMDY3MTExOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac790723d206fe9ed8ad2e33487fbfa4d30bf47f902c01473bd4a46424ef14c282
hovercard-subject-tagissue:567355830
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/482/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c54dc5c6d4a3a59677241447058648a7de50c15890f5288ac13e9c71ce9ea95/feast-dev/feast/issues/482
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c54dc5c6d4a3a59677241447058648a7de50c15890f5288ac13e9c71ce9ea95/feast-dev/feast/issues/482
og:image:alt1. Introduction We've had a lot of demand for either open source or AWS batch stores (#367, #259). Folks from the community have asked us how they can contribute code to add their stores types. In ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewoop
hostnamegithub.com
expected-hostnamegithub.com
None4d375b6c612de26fd037e0638eaf57e32cf9b16daf53ab68c25c04cd3b058113
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5b310e2c1221fb24ffd3f38a097000863d2dfdd4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/482#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F482
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F482
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/482
Reloadhttps://github.com/feast-dev/feast/issues/482
Reloadhttps://github.com/feast-dev/feast/issues/482
feast-dev https://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Notifications https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Fork 1.2k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Star 6.7k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 183 https://github.com/feast-dev/feast/issues
Pull requests 68 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security 0 https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Code https://github.com/feast-dev/feast
Issues https://github.com/feast-dev/feast/issues
Pull requests https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/482
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/482
Feast API: Adding a new historical storehttps://github.com/feast-dev/feast/issues/482#top
area/ingestionThe ingestion Beam component and storage-related itemshttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22area%2Fingestion%22
area/servinghttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22area%2Fserving%22
wontfixThis will not be worked onhttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22wontfix%22
https://github.com/woop
https://github.com/woop
woophttps://github.com/woop
on Feb 19, 2020https://github.com/feast-dev/feast/issues/482#issue-567355830
#367https://github.com/feast-dev/feast/issues/367
#259https://github.com/feast-dev/feast/issues/259
https://user-images.githubusercontent.com/6728866/74807906-91e73c00-5324-11ea-8ba5-2b43c7c5282b.png
StoreUtil.javahttps://github.com/gojek/feast/blob/master/ingestion/src/main/java/feast/ingestion/utils/StoreUtil.java
WriteToStore.javahttps://github.com/gojek/feast/blob/master/ingestion/src/main/java/feast/ingestion/transform/WriteToStore.java#L90
https://user-images.githubusercontent.com/6728866/74797157-702a8c80-5305-11ea-8901-bf6f4eb075f9.png
BigQueryServingServicehttps://github.com/gojek/feast/blob/master/serving/src/main/java/feast/serving/service/BigQueryServingService.java
ServingServicehttps://github.com/gojek/feast/blob/master/serving/src/main/java/feast/serving/service/ServingService.java#L28:18
ServingServicehttps://github.com/gojek/feast/blob/master/protos/feast/serving/ServingService.proto#L29
area/ingestionThe ingestion Beam component and storage-related itemshttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22area%2Fingestion%22
area/servinghttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22area%2Fserving%22
wontfixThis will not be worked onhttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22wontfix%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.