GithubHelp home page GithubHelp logo

isabella232 / challenge-eventstore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intelie/challenge-eventstore

0.0 0.0 0.0 6 KB

Hiring challenge: implement the EventStore interface

Java 100.00%

challenge-eventstore's Introduction

Implement EventStore

In this challenge, you will create a class that implements the EventStore interface.

public interface EventStore {
    void insert(Event event);

    void removeAll(String type);

    EventIterator query(String type, long startTime, long endTime);
}

Your implementation should store events in memory, using any data structures you see fit for the task. The required behavior for the interface is described in the provided code javadocs, please see EventStore and EventIterator interfaces inside the src/main/java directory.

The implementation should be correct, fast, memory-efficient, and thread-safe. You may consider that insertions, deletions, queries, and iterations will happen frequently and concurrently. This will be a system hotspot. Optimize at will.

We expect you to:

  • Write tests;
  • Provide some evidence of thread-safety;
  • Justify design choices, arguing about costs and benefits involved. You may write those as comments inline or, if you wish, provide a separate document summarizing those choices;
  • Write all code and documentation in english.

You may use external libraries, but their use has to be properly justified as well.

This challenge is intentionally simple, we expect a simple, elegant, and polished solution. There is no unique solution to this challenge. The intent is to evaluate candidate's coding proficiency and familiarity with tools and best practices.

Solve this challenge

To solve this challenge, you may fork this repository, then send us a link with your implementation. Alternatively, if you do not want to have this repo on your profile (we totally get it), send us a git patch file with your changes.

If you are already in the hiring process, you may send it to whoever is your contact at Intelie. If you wish to apply for a job at Intelie, please send your solution to [email protected].

challenge-eventstore's People

Contributors

hubefonseca avatar juanplopes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.