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

Suggest two strategies for assessing physical development and two strategies

   Suggest two strategies for assessing physical development and two strategies for increasing a child’s interest in physical activity. How would you incorporate these strategies into an overall plan to improve motor skills as well as coordination, strength, and endurance? For full points, remember to supply specific examples and/or textual

The purpose of this discussion is for you to demonstrate

The purpose of this discussion is for you to demonstrate an understanding and ability to search the library for quantitative research related to the practice problem. Use the focus of the Global Burden of Disease and National Practice Problems to guide your search for a quantitative article. Choose a quantitative

Directions This is an individual assignment. Report on your research

Directions This is an individual assignment. Report on your research of FDI inflows/outflows across the globe and within the Asian Continent. Appropriate graphs and/or tables should be provided to support your report. Utilize APA format. 1. Conduct a literature review to compare and contrast global foreign direct investment inflows received

Instructions Analyzing the Team This week, you will conclude your

Instructions Analyzing the Team This week, you will conclude your team assignment by evaluating your team’s effectiveness and assessing your leadership skills. You should bring together all of the insights that you have gained while studying in the course and while completing the weekly final assignments. On the basis of

Primary Task Response: Within the Discussion Board area, write 300–500

Primary Task Response: Within the Discussion Board area, write 300–500 words that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to reinforce your ideas. Examine the REAL ID 2005 Act.

Topic: Conduct Internet research on English Learners (EL) and Students

Topic:  Conduct Internet research on English Learners (EL) and Students with emotional disorders (ED)Use government,academic, or nonprofit websites, along with the course text to support your responses (do NOTuse Wikipedia, blogs, or other opinion or non-academic resources). Include specific details andconcrete examples. Cite sources at the end of each paragraph.

Compare the two companies’ financial ability to execute their plans.

Compare the two companies’ financial ability to execute their plans. Discuss which company is in a better position to execute its plans and justify your rationale. You are required to use a minimum of two resources, not including the 10-K or the textbook. Your sources must come from peer-reviewed or

The strategic review of Mc’Donalds in UK

The structure of the writing must be followed: Table of contents: (not in word count) Executive summary -> write it last Introduction (150-250 words) -> Define the profile of the company (vision and/or mission, value and/or culture, long-term goals) -> Define the boundaries of the market/industry/SBV Part 1 -> analysis

In at least 2 pages, describe the mission of your

In at least 2 pages, describe the mission of your organization (e.g., what product or service is provided, to what intended markets, and how the product or service is distinct from those offered by competitors), who your customers are (internal and external), what value you add to the organization (how

Exercise Instructions: You are required to submit a 2-Page (Title

  Exercise Instructions:  You are required to submit a 2-Page (Title Page and Content Page), APA formatted paper with substantial content. Substantial content requires staying on topic and fully addresses the assignment in a clear, concise, and meaningful manner. The deliverable length of your posting responses must be at least

You are an HR specialist for a company that manufactures

You are an HR specialist for a company that manufactures shoes. Recently, you noticed that turnover has increased, specifically with newly hired production associates working less than 60 days. You designed an exit survey for those who recently resigned and have received 100 responses so far. Based on this feedback,

Miami Dade College Health & Medical Paper Nursing Assignment Help

Select a medication that is either classified as an antidepressant or mood stabilizer. Based on your selection, write a paper (maximum 4 pages) and discuss the following information related to the medication you selected. Evidence based treatment selection (FDA approved uses) Off label uses, if any Contraindications, if any to

Is Price gouging criminal or is it the free market working efficiently?

Memo to economists defending price gouging in a disaster: It’s still wrong, morally and economically Hiltzik, Michael. Los Angeles Times (Online), Los Angeles: Tribune Interactive, LLC. Aug 28, 2017. Abstract Translate [unavailable for this document] When the market breaks down utterly, as in Houston, where huge swaths of the region

The Agency for Health Care Research and Quality (AHRQ) supports

  The Agency for Health Care Research and Quality (AHRQ) supports research that improves the quality of health care and performance improvement. Select and describe one of the data sources available from AHRQ. Include in your discussion the role of the health care leader in promoting safe, effective evidence-based patient

To complete this assignment you must read all the required

  To complete this assignment you must read all the required material from module 1. Please keep in mind that it is not an exercise in summarizing the readings. Summaries will get a lower grade. Discuss your thoughts on the readings, including general themes, disagreements, and any insights you glean