Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32174

Re: API vc MVC

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: API vc MVC
Date Mon, 27 Jul 2015 22:36:40 -0400
Organization Aioe.org NNTP Server
Lines 42
Message-ID <mp6pro$2jr$1@speranza.aioe.org> (permalink)
References <6a96955c-6b2a-416e-9be1-8c5bcc12ff3e@googlegroups.com> <1s3pjel7zj5r5.14vjkiodgf3ii.dlg@40tude.net>
NNTP-Posting-Host bLmKSxgyEsD8qtT7wjgUDQ.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:32174

Show key headers only | View raw


On 5/12/2015 2:09 AM, Joerg Meier wrote:
> On Mon, 11 May 2015 19:04:27 -0700 (PDT), Leonan Luppi wrote:
>
>> I have a sad doubt about this subject's. Today what is better?
>
>> Use MVC Pattern and consuming request to load my view or just
>> create an API which any client can access (my environment, my
>> front-end will be AngularJS or any javascript MV* framework). I
>> mean what can be more scalable, performatic?
>
> What is better, a screwdriver or the colour blue ? Your question
> makes no sense, the comparison it nonsensical, and you could even
> simply combine the two.

If looking at the strict basic definitions of MVC and API then you are
100% correct.

But if you use the terms in the more informal way that are common
among web developers then the question makes perfect sense - and are
in fact a question most Java web developers are considering these
days.

MVC = server side HTML generation using Java MVC web framework like
Struts, Spring MVC and to some extent JSF.

API = JavaScript application running client side (using AngularJS
or similar framework, could be a single page application) talking
to server side API which in Java typical would be JAX-RS based.

Very standard choice.

If you were in the .NET world then you would chose between
ASP.NET MVC and ASP.NET Web API.

> Neither MVC nor an API have any inherent properties when it comes to
> scalability either.

That is true.

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

API vc MVC Leonan Luppi <leonan.luppi@gmail.com> - 2015-05-11 19:04 -0700
  Re: API vc MVC Joerg Meier <joergmmeier@arcor.de> - 2015-05-12 08:09 +0200
    Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-27 22:36 -0400
  Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-27 22:40 -0400
    Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-28 11:55 +0800
      Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-28 18:56 -0400
        Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-29 07:03 +0800
          Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-29 08:10 +0800
            Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:43 -0400
          Re: API vc MVC e.d.programmer@gmail.com - 2015-07-29 05:14 -0700
            Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-07-29 16:30 +0100
              Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-07-30 05:46 +0800
                Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:56 -0400
              Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:53 -0400
                Re: API vc MVC Silvio <silvio@internet.com> - 2015-07-31 15:10 +0200
                Re: API vc MVC Silvio <silvio@internet.com> - 2015-07-31 15:12 +0200
                Re: API vc MVC Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-08-01 09:04 +0800
                Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-31 19:34 -0400
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-01 05:39 +0100
                Re: API vc MVC Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-01 10:13 +0000
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-01 21:54 +0100
                Re: API vc MVC Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-01 22:49 +0000
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-02 07:57 +0100
                Re: API vc MVC Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-02 07:49 +0000
                Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-08-02 09:28 +0100
            Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:45 -0400
              Re: API vc MVC e.d.programmer@gmail.com - 2015-07-31 05:31 -0700
          Re: API vc MVC Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 22:41 -0400
        Re: API vc MVC Eternal Hope <laughingspam99@gmail.com> - 2015-07-29 16:24 +0100

csiph-web