question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Contribution]: Multiple data source support

See original GitHub issue

What happened?

I proposed this feature in https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/343#issuecomment-1531014957 .

Carbon Aware SDK supports just one data source as following:

{
  "DataSources": {
    "EmissionsDataSource": "ElectricityMaps",
    "ForecastDataSource": "WattTime",

Granularity and covered area vary in each data souces. Some SDK users want to use WattTime as a first priority, but they might want to use ElectricityMaps when they want to know emission data of uncovered area in WattTime.

So I’d like to propose mutiple data source support as following:

{
  "DataSources": {
    "EmissionsDataSources": ["WattTime", "ElectricityMaps"],
    "ForecastDataSources": ["JSON", "WattTime", "ElectricityMaps"],

In above case, both EmissionsDataSouce and ForecastDataSouces are array. Lower index is higher priority. For example in EmissionData, WattTime is the highest priority, but no emission data for given location in WattTime, it would fallback to ElectricityMaps.

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Feature Commitment

  • I commit to contributing this feature as a PR and working with the GSF to merge this feature into the Carbon Aware SDK.

Issue Analytics

  • State:open
  • Created 5 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bderushacommented, May 5, 2023

@YaSuenag This seems worthy of an ADR.

0reactions
Willmishcommented, May 23, 2023

Update from meeting #355: not crticial for 1.1, rather a feature for 1.2. Open to discussion

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offline stores should support multiple data sources #2121
Offline stores currently only support their corresponding data source. For example: class BigQueryOfflineStore(OfflineStore): def ...
Read more >
Launch Highlight: Multiple Data Sources
The Multiple Data Sources feature introduces a new saved object, data-source , that provides information about a data source connection, such as ...
Read more >
How to Use Multiple Data Sources in a DSV
In this article, you will learn about the benefits and challenges of using multiple data sources in a DSV, and how to create...
Read more >
Multiple data sources, databases, schemas and replication ...
To use multiple data sources connected to different databases, simply create multiple ... This feature is supported only in mysql and mssql databases....
Read more >
Data sources | ArcGIS Experience Builder
The actual data of a FeatureLayerDataSource can be from a remote database, or from a collection of client side features. Both types support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found