Write a spring boot APIs that each serve a given

Write a spring boot APIs that each serve a given BIAN Service Domain. The data that the APIs

exposed are sourced from Systems of Record to produce a realtime feed through Kafka. Our APIs are

either written on top of Kafka topics directly using Event Sourcing or we use the traditional approach

of sinking our data from Kafka to a database and write our API on top of the databases.

The purpose of this challenge is to have you work through a problem where the expectation is for you

to produce an API. We have specifically opted to make the problem statement as generic as possible

to allow you to:

The ONLY requirement is that this API MUST BE WRITTEN USING THE SPRING BOOT

FRAMEWORK.

Problem Statement

The Data Feeds

Let’s assume you have the two following data feeds:

Feed 1: The balances

This is a data feed, where each event represents a single balance update for a given account.

A single record looks like this

{“accountNumber”: “abc”, “lastUpdateTimestamp”: “2020-01-01T01:02:03.8Z”, “balance”: 89.1}

Feed 2: The transactions

This is a data feed representing transactions that are occuring. Each record will be a single transaction

at the bank. Keep in mind that there are two types of transactions: 1. DEPOSIT and 2. WITHDRAW.

A single record looks like this

For a DEPOSIT:

{“accountNumber”: “abc”, “transactionTs”: “2020-01-03T01:02:03.8Z”, “type”: “DEPOSIT”, “amount”: 89.1}

Or a WITHDRAW

{“accountNumber”: “abc”, “transactionTs”: “2020-01-03T01:02:03.8Z”, “type”: “WITHDRAW”, “amount”: 89.1}

The API [ the actual meat of the assignment 😉 ]

Please write an API that can serve the following queries:

1. Given an accountNumber, return the latest balance.

2. Given an accountNumber and a time range such as: Today, Last 7 days, last Month and the

more general case of a range between date X and date Y. For example, I should be able to ask for all

my transactions between January 8th, 2019 and November 28th, 2020.

3. Repeat 2, but filter for type. I.E. Show me transactions with type WITHDRAW.

Some hints:

1. Make sure that any technical choice you are making is backed up by good reasoning. Meaning,

if you decide to go with event sourcing? Why? If you choose to use a noSQL datbase? Why?

2. Make reasonable assumptions about the problem. If any extra detail is left out, just ride the

wave and make assumptions. There are no wrong answers here.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Select a firm (MAC Cosmetics) and complete the outlined below.

 Select a firm (MAC Cosmetics) and complete the outlined below. You may use any source of information and must document references that are used. You must use current firm-specific and industry-specific accounting data (as of 12/31/19 if available) as appropriate for the analysis. Paper must follow APA guidelines, and at

250 words Use the Capella University Library to complete the

 250 words Use the Capella University Library to complete the following: Read the following from the DSM-5-TR to develop insight on dissociative and eating disorders: Identify a disorder from this week’s readings that you are interested in (categorized in the DSM-5-TR as dissociative or feeding and eating disorders): Provide a

Please consider the below topic in relation to the professional

  Please consider the below topic in relation to the professional image of nursing. Reflect upon how our historic nursing leaders or nurse theorists have been influenced by social activism, the misconstrued perspective or lack of knowledge of nursing from society, and the impact that professional nursing advocacy and theory

Question 1: What is the bullwhip effect, and how does

  Question 1:  What is the bullwhip effect, and how does it relate to lack of coordination in a supply chain? Give a sample scenario to help explain the bullwhip effect. Question 2:  What is the impact of lack of coordination on the performance of a supply chain?  Give a sample scenario

Thesis Statement -What is the Good Life?

Criterion 1: Clarity and comprehensiveness of definitions • What is ‘The Good Life’ • What is knowledge Criterion 2: Articulation of personal philosophy • How does the above align with your personal philosophy Criterion 3: References • Draws on highly relevant sources to build argument A thesis statement The thesis

FIU Nurses Association in Health Policy Advocacy Presentation Nursing Assignment Help

Please follow the steps below to complete your assignment. Select an interest group (AARP, AHIP, Coalition for Health Services Research, Emergency Nurses Association, Pharma) Discuss how they are pushing their agenda (i.e., mechanisms used to influence policy makers), key obstacles, and spending (consult the Center for Responsible Politics, www.opensecrets.org) Investigate

Please help with homework

CAM Therapies CAM theories and practices are being used today by majority of people these days. These theories relate to the ethnomedical practices, which is the study of traditional branches of medicine which may or may not have related written text. These practices include traditional Chinese, Ayurveda, and Unani practices

Discussion Question #2 List three classes of drugs affecting the

  Discussion Question #2 List three classes of drugs affecting the Hematopoietic System. List the mechanism of action for each class of drug. Choose one medication from the three classes and discuss what disorder the drug is used to treat? How often the medication is given? What labs should get

This assignment has five parts: (a) Components of Research,(b) Sources

This assignment has five parts: (a) Components of Research,(b) Sources of Information, (c) Use and Misuse of information, (d) Established Tools of Measurement, and (e) Types of Research. Components of  Research: Identify the major components of the scientific method and relate them to writing a research report. Then briefly discuss

Imagine visiting overseas, where you win the local lottery and

Imagine visiting overseas, where you win the local lottery and can buy any foreign car you wish and will pay full retail price using the local currency, payable in three months. You have determined that you have enough cash at your bank in New York City, which pays 0.35 percent

A minimum of 8 pages (Pages 2-13) o Introduction of

A minimum of 8 pages (Pages 2-13)o Introduction of the need for Team Leadership trainingo Diagnosis of problems and potential solutions in team leadershipo Discussion of current research on improving team effectivenesso Include Communication, Conflict, Creativity, and Cultureo Include the Five Appreciationso Discuss the Five Dysfunctions of a Teamo Discussion

Please respond in two paragraphs of six sentences each to

  Please respond in two paragraphs of six sentences each to each of the following prompts  This is an opportunity to examine your environmental scanning abilities and, at the same time, discover how every event that occurs, domestically or internationally, can affect both the business world and your personal life.

Governing class model of power and authority

Of the three models of power and authority discussed in this class – PLURALISM, POWER ELITE, and GOVERNING CLASS – which do you think is most adequate to account for the way the U.S. is actually run, and why? (The pluralist model is most similar to the way the U.S.

Select and research a company that is having financial difficulties

  Select and research a company that is having financial difficulties or is on the brink of bankruptcy.  Review “Where Can I Find a Company’s Annual Report and Its SEC Filings?” from Investopedia. Conduct a strategic analysis of the company’s current financial operations. Determine strategies for achieving a sustainable competitive

ns Healthcare Mission, Vision, and Values Introduction: Healthcare leaders need experience in creating mission, vision, and value statements for their organizations. For this unit’s assignment, you wi Nursing Assignment Help

ns Healthcare Mission, Vision, and Values Introduction: Healthcare leaders need experience in creating mission, vision, and value statements for their organizations. For this unit’s assignment, you will develop mission, vision, and value statements for a healthcare facility of your own choosing. The facility might be the one where you currently

Chapter 14 Questions You learned in this chapter that the

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.