Judaism, India's oldest foreign religion

It's a tiny community and so well-integrated even in surnames that it is hard to tell an Indian Jew by their name, dress or outward appearance. But when and how did the Jews first arrive in India and why?