-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fallback behavior for Posts service timeout problems
- Loading branch information
Showing
9 changed files
with
94 additions
and
78 deletions.
There are no files selected for viewing
69 changes: 0 additions & 69 deletions
69
cloudnative-circuitbreaker/cookbook-deployment-kubernetes-connectionposts.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
docker build --build-arg \ | ||
jar_file=cloudnative-connectionposts/target/cloudnative-connectionposts-0.0.1-SNAPSHOT.jar \ | ||
-t cdavisafc/cloudnative-requestresilience-connectionposts:0.0.2 . | ||
-t cdavisafc/cloudnative-requestresilience-connectionposts:0.0.3 . | ||
# only connections posts has changed for this step | ||
# | ||
docker push cdavisafc/cloudnative-requestresilience-connectionposts:0.0.2 | ||
docker push cdavisafc/cloudnative-requestresilience-connectionposts:0.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ectionposts/src/main/java/com/corneliadavis/cloudnative/connectionsposts/PostResults.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.corneliadavis.cloudnative.connectionsposts; | ||
|
||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
import java.io.Serializable; | ||
|
||
@RedisHash("PostSummaries") | ||
public class PostResults implements Serializable { | ||
@Id | ||
private String ids; | ||
private String summariesJson; | ||
|
||
public PostResults (String ids, String summariesJson) { | ||
|
||
this.ids = ids; | ||
this.summariesJson = summariesJson; | ||
} | ||
|
||
public String getSummariesJson() { | ||
return summariesJson; | ||
} | ||
|
||
public String getIds() { | ||
return ids; | ||
} | ||
|
||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
.../src/main/java/com/corneliadavis/cloudnative/connectionsposts/PostsResultsRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.corneliadavis.cloudnative.connectionsposts; | ||
|
||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface PostsResultsRepository extends CrudRepository<PostResults, String> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters