Enable contrast version

Tutor profile: Antonio T.

Antonio T.
7 years work experienced software developer

Questions

Subject: Processing Programming

TutorMe
Question:

Describe differences between stream processing and batch processing.

Antonio T.
Answer:

Those two are different techniques to approach to data processing. Stream processing: - handles one chunk of data at time doing various steps until its completed and moved on on next - tends to be simpler but might be less efficient than batch processing especially when performing remote requests Batch processing: - handles batch of data at time doing various steps in application for whole batch at once, when whole batch is finished it's continues with next batch - tends to be more complicated ti implement especially when dealing with async requests and in situations when different parts of batch need to be handled differently - main reason to have batch processing if for better network performance because one big remote request will be much faster that many small one due tto duration of network round-trips.

Subject: Java Programming

TutorMe
Question:

What is purpose of following methods that all java Objects have: - boolean equals(Object object) - int hashCode()

Antonio T.
Answer:

Method equals: Serves to test for semantic equality of two object instances. Default Object's implementation returns true only when invoked against same instance itself. Derived classes might need to override this method to support proper equality test of two different instances. It is used in many places in standard library such as in various collections to when performing contains check operation. Method implementation should follow several contracts: - reflective: method must return true for for same instance - symmetrical: method must return the same when A is tested on B and when B is tested on A - transitive: if A is equal to B and B is equal to C, then A needs to be equal to C Method hash code: Serves as representing an integer value for digest of an object. Implementation should attempt its best to return different value for different objects. But contract of this method against equals method is that two equal objects need to return same hash code value. Method is used in standard library, for example in HashMap implementation to be able to support fast lookups in map based on hash code of key object.

Subject: Computer Science (General)

TutorMe
Question:

What is data caching and what is it's purpose?

Antonio T.
Answer:

Data caching is technique to store previously calculated/obtained results for future/near-future re-use. Main purpose is to avoid repeated expensive calculation of already known result or avoid need to do lengthy network request to external system. Re-using cached reduces execution time and minimises CPU or external systems utilisation. Having cache comes with it's own cons such as: - increased memory consumption for storing cached values - cache invalidation problem which manifests in situation when working with external systems when data can change any time. When we use cache we need to be careful how to deal with situations if we use cached value when actual external data was changes since we stored it in our cache.

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by GoGuardian
Copyright © 2022. Zorro Holdco, LLC doing business as TutorMe.
All Rights Reserved.
High Contrast Mode
On
Off