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.

Why does the SDK guideline define the necessity for sync methods?

See original GitHub issue

Query/Question

image

https://azuresdkspecs.z5.web.core.windows.net/DotNetSpec.html

Why does the SDK guideline define the necessity of providing sync method overloads? How are you planning to implement those? I hope you are not going to use GetAwaiter().GetResult() but have a clear dedicated synchronous HttpPipeline? But still why is this required at this day of age when Task returning APIs for IO bound domains is the defacto standard?

Why is this not a Bug or a feature Request? A clear explanation of why is this not a bug or a feature request?

Setup (please complete the following information if applicable):

  • OS: [e.g. iOS]
  • IDE : [e.g. IntelliJ]
  • Version of the Library used

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Query Added
  • Setup information Added

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
j82wcommented, Aug 6, 2019

If the only reason to support synchronous call stacks is to support older existing application would it be better to try to build a library or some other solution as an additional package to convert asynchronous SDK to synchronous? This seems like unnecessary bloat for most users since modern applications are asynchronous. Also by supporting synchronous APIs directly in the SDK users might start building new applications with the sync API. The user will eventually hit scaling/performance issues and have to convert to async. This would also avoid every SDK team from needing to duplicate their entire call stack to support the synchronous calls.

0reactions
msftbot[bot]commented, Jul 28, 2020

Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asynchronous programming - AWS SDK for Java 2.x
Synchronous methods block your thread's execution until the client receives a response from the service.
Read more >
SDK best practices for user safety
Learn more about best practices for user safety, whether you're an app developer using an SDK or an SDK developer.
Read more >
Best Practices for Building with Sync SDKs
This guide covers best practices for development using the Sync SDKs. The Sync team has learned a lot with our customers and can...
Read more >
Java Azure SDK Design Guidelines
Because in Java both synchronous and asynchronous service clients are required, the sections below are organized into general service client guidance, followed ...
Read more >
Task asynchronous programming model
Asynchrony proves especially valuable for applications that access the UI thread because all UI-related activity usually shares one thread. If ...
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