Questions tagged [availability]

149 questions
316
votes
13 answers

CAP theorem - Availability and Partition Tolerance

While I try to understand the "Availability" (A) and "Partition tolerance" (P) in CAP, I found it difficult to understand the explanations from various articles. I get a feeling that A and P can go together (I know this is not the case, and that's…
Manikandan Kannan
  • 8,684
  • 15
  • 44
  • 65
26
votes
8 answers

Objective-C @available guard AND'ed with more conditions

Objective-C has an @available expression in XCode 9+ / LLVM 5+ that allows you to guard a block of code to at least a certain OS version so that it won't emit unguarded availability warnings if you use APIs that are only available on that OS…
user102008
  • 30,736
  • 10
  • 83
  • 104
26
votes
1 answer

Is DynamoDB still following CAP theorem with its "Strong Consistency" promises?

Previously, DynamoDB was providing "eventual consistency" only, obeying "Availability" and "Partition Tolerance" portion of CAP theorem. But now, DynamoDB provides "strong consistency" option apart from the "eventual consistency". Does that mean…
Neeraj Gupta
  • 765
  • 1
  • 10
  • 18
21
votes
3 answers

Negating Objective-C's @available keyword

I would like to run a piece of code only if the iOS version of the current device is below a specific version, as specified here. The code examples given by Apple look like this: if (@available(iOS 10.0, *)) { // iOS 10.0 and above } else { //…
StatusReport
  • 3,397
  • 1
  • 23
  • 31
19
votes
3 answers

Check availability in switch statement

if a Enum type add new case in new os version,how to check availability in switch statement? Like a Enum in StoreKit below public enum Code : Int { public typealias _ErrorType = SKError case unknown case clientInvalid case…
codiction
  • 581
  • 5
  • 15
6
votes
2 answers

Swift availability check for macCatalyst / iOS failing

I have added an iOS 15+/macCatalyst 15.0+ function to my app and now it is crashing when run on an M1 iMac through Mac Catalyst (Designed for iPad). I have an availability check around my function however when run on my Mac (macOS 11.6), the code…
Darren
  • 10,182
  • 20
  • 95
  • 162
6
votes
4 answers

Use different implementations of a class depending on iOS version?

iOS 11 recently added a new feature I would like to use but I still need to support older versions of iOS. Is there a way to write the same class twice and have newer versions of iOS use one version of the class and older versions of iOS use the…
TenaciousJay
  • 6,750
  • 3
  • 45
  • 48
5
votes
1 answer

Duration overlap causing double counting

I'm using SQL Server Management Studio 2008 for query creation. Reporting Services 2008 for report creation. I have been trying to work this out over a couple of weeks and I have hit a brick wall. I’m hoping someone will be able to come up with…
4
votes
1 answer

Check if a video on YouTube is available from the URL using JavaScript

How can I check if a YouTube video is available or unavailable for any reason from the URL or video id by using JavaScript in an html website for example: this link goes to a video that is available https://www.youtube.com/watch?v=3aY1Z15vTw0 this…
Brandalf
  • 476
  • 1
  • 6
  • 20
4
votes
1 answer

Application Insights Availability tests fails on 200 OK with "System.UriFormatException: Invalid URI: The format of the URI could not be determined."

I am just trying out Application Insights availability tests. I let them run over night to our public website and got only "fails" When I drill in to the separate test runs, I see that the server responded with "200 OK", sending the expected html…
Alexander Marek
  • 479
  • 1
  • 7
  • 22
4
votes
1 answer

Last argument of Swift #availability check

Swift programming language guide has this to say regarding the last argument in #availability check: if #available(iOS 9, OSX 10.10, *) { // Use iOS 9 APIs on iOS, and use OS X v10.10 APIs on OS X } else { // Fall back to earlier iOS and OS…
Boon
  • 40,656
  • 60
  • 209
  • 315
4
votes
1 answer

How should application using active/passive redundant model be containerized using Kubernetes?

I have a distributed application running on virtual machines, among which I have one service running on active/passive mode. The active VM provides service via a public IP. Should the active VM fail, the public IP will be moved to the passive VM and…
xiaoping yan
  • 305
  • 3
  • 8
4
votes
2 answers

How does Hadoop's HDFS High Availability feature affects the CAP Theorem?

According to everything I've read so far about the CAP Theorem, no distributed system can provide all three of: Availability, Consistency and Partition Tolerance. Now, Hadoop 2.x introduced a new feature, which can be configured in order to remove…
Deleteman
  • 8,500
  • 6
  • 25
  • 39
3
votes
2 answers

How to subclass a renamed class? / 'MKPinAnnotationView' was deprecated in iOS 15.0: renamed to 'MKMarkerAnnotationView‘

MKPinAnnotationView was renamed in iOS 15 to MKMarkerAnnotationView. Up to iOS 14, I subclassed MKPinAnnotationView as class MyAnnotationView: MKPinAnnotationView { // … } The problem: If my app is compiled to iOS 14, I want to declare…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
3
votes
1 answer

How to do Availability Test for SQL Database Resource in Azure?

Am working on Log Analytics,Application Insights and alerts in Azure. Here,I can easily doing availability test for my Web Applications to know my application availability. Same as this, am trying to do availability test for SQL Database and Storage…
Mani
  • 1,228
  • 3
  • 10
  • 28
1
2 3
9 10